Overview of OpenTelemetry .NET API components
mainThe OpenTelemetry .NET API provides abstractions for instrumentation without addressing export or sampling concerns. The core components include:
- Tracing API: Used to generate Spans (represented by the .NET
Activityclass) to form trace trees. - Logging API: Integrates with the standard
Microsoft.Extensions.LoggingAPI rather than introducing a new one. - Metrics API: Used to capture and process raw measurements of program execution.
- Baggage API: Allows adding context to metrics, traces, and logs that can be propagated out-of-process.
- Context and Propagation API: Handles the injection and extraction of context data.