Getting started with OpenTelemetry

OpenTelemetry

Java Instrumentation with OpenTelemetry

OSHI Core [Optional]

OSHI Core allows you to retrieve the “memory” metrics displayed in the Service/System tab.

Version 5.3.1 and above supported.

In pom.xml, add the required dependencies:

<!-- opentelemetry-->
    <dependency>
    <groupId>io.opentelemetry.instrumentation</groupId>
    <artifactId>opentelemetry-oshi</artifactId>
    <version>0.16.1</version>
    <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>com.github.oshi</groupId>
        <artifactId>oshi-core</artifactId>
        <version>5.3.1</version>
    </dependency>

In the Java application entry point, add the recording of metric observers.

import io.opentelemetry.instrumentation.oshi.ProcessMetrics;
import io.opentelemetry.instrumentation.oshi.SystemMetrics;
public static void main(String[] args) {
		/*
         * ...
         */
		SystemMetrics.registerObservers();
		ProcessMetrics.registerObservers();
	}

Launch of the application

java -javaagent:path/to/opentelemetry-javaagent.jar -jar myapp.jar

NodeJS Instrumentation with OpenTelemetry

Dotnet Instrumentation with OpenTelemetry

OpenTelemetry .NET automatic instrumentation should work with all officially supported operating systems and versions of .NET. The minimum supported version of .NET Framework is 4.6.2. The following processor architectures are supported: x86 AMD64 (x86-64) ARM64 (experimental)

Configuration

Troubleshooting

For SharePoint: If you notice that error messages are not being reported, refresh the page several times.