Elastic has released the alpha version of its OpenTelemetry SDK for .NET. This new distribution focuses on simplifying the collection of tracing, metrics, and logs for developers using .NET.
Developers interested in integrating this SDK can start by adding the Elastic OpenTelemetry NuGet package to their projects using:
<PackageReference Include=”Elastic.OpenTelemetry” Version=”1.0.0-alpha.1″ />
For ASP.NET Core applications, additional telemetry insights can be gained by including the OpenTelemetry.Instrumentation.AspNetCore
NuGet package. This enables comprehensive instrumentation for ASP.NET Core endpoints.
To fully utilize the SDK, developers need to set up essential environment variables such as OTEL_EXPORTER_OTLP_ENDPOINT
and OTLP_EXPORTER_OTLP_HEADERS
. These configurations help in setting up the OTLP exporter, which is crucial for the telemetry data export.
While the current release is alpha and not recommended for production, Elastic encourages feedback on API design and usability. Their goal is to integrate OpenTelemetry deeply into their stack, enhancing their APM solutions and providing a vendor-neutral option to the community.
The SDK, being open-source, is available on GitHub for further exploration and contributions.