Skip to content

How MeterProvider works between API and SDK #4082

Answered by cijothomas
Deniz asked this question in Q&A
Discussion options

You must be logged in to vote
  1. AggregationManager is not at all connected/related to OpenTelemetry. Its used by .NET runtime itself for tools like dotnet-counters.

  2. OpenTelemetry uses MeterListener to subscribe to Metric updates from the API (DiagnosticSource): https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry/Metrics/MeterProviderSdk.cs#L152
    There is no logic to be replaced - DS gives call backs. OTel uses it to get raw measurements, and aggregates them following OTel spec.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Deniz
Comment options

@cijothomas
Comment options

Answer selected by Deniz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants