You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was creating a POC to use OpenTelemetry metrics and couldn't get it to work. After trying a lot of things, it turns out that the default aggregation interval is TimeSpan.Infinite.
This means that, by default, the metrics will only be exported when the application shuts down (if the MetricProvider is disposed properly)
Wouldn't it make more sense to use 5 min as a default? What was the reasoning behind this?
The text was updated successfully, but these errors were encountered:
tomkerkhove
changed the title
Is TimeSpan.Infinite the best default aggregation default?
Is TimeSpan.Infinite the best default aggregation default for console exporter?
Nov 9, 2021
Question
Describe your environment.
Local development
What are you trying to achieve?
I was creating a POC to use OpenTelemetry metrics and couldn't get it to work. After trying a lot of things, it turns out that the default aggregation interval is
TimeSpan.Infinite
.This means that, by default, the metrics will only be exported when the application shuts down (if the
MetricProvider
is disposed properly)Wouldn't it make more sense to use 5 min as a default? What was the reasoning behind this?
The text was updated successfully, but these errors were encountered: