-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default push metric exporters to use a periodic metric reader #2379
Default push metric exporters to use a periodic metric reader #2379
Conversation
Folks during the 3/1 spec SIG meeting agreed that defaulting to using a periodic metric reader for push based is fine. Though, there was some additional discussion for defaulting the Since this PR already has some approvals, I can follow up with another PR suggesting a shorter interval for stdout. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with changelog updated.
…elemetry#2379) * Default push metric exporters to use a periodic metric reader * Default push metric exporters to use a periodic metric reader * Make link relative * Update changelog Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
At least two SDKs differ in whether they default to using the periodic MetricReader when automatically configuring which exporter to use. This PR proposes that SDKs should default to using the periodic MetricReader when configuring the use of the stdout, in-memory, and OTLP exporters.
Java
The autoconfigure module allows users to configure the use of either the OTLP or logging (stdout) exporter. The exporter is paired with a periodic MetricReader.
https://github.com/open-telemetry/opentelemetry-java/blob/083dca1b94c6e803579311e008848aa6b80d921b/sdk-extensions/autoconfigure/src/main/java/io/opentelemetry/sdk/autoconfigure/MetricExporterConfiguration.java#L44-L67
.NET
Users can programmatically add an exporter without explicitly declaring the MetricReader to use. The exporter is not paired with a periodic MetricReader by default and requires
ForceFlush
to be called on the MeterProvider. However, you can configure it to use the periodic MetricReader.https://github.com/open-telemetry/opentelemetry-dotnet/blob/644ba5bc14eac8919032cb27a958d1fa919a8b37/examples/AspNetCore/Startup.cs#L137-L145
This PR is related to #2378. If #2378 is not accepted - that is, it is intended that all push metric exporters always be paired with a periodic exporting MetricReader, then this PR is probably unnecessary.