-
Notifications
You must be signed in to change notification settings - Fork 772
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
Metrics are no longer flushed automatically #2979
Comments
There is an upcoming spec PR (open-telemetry/opentelemetry-specification#2379), which will make OTLP do periodic export by default. |
Hm but this used to work. Is this an undocumented breaking change then? |
Yes agree. |
Thanks, I'll just wait for the new RC to show up then.
This would be super helpful indeed, thank you! |
Bug Report
List of all OpenTelemetry NuGet packages and version that you are using (e.g.
OpenTelemetry 1.0.2
):OpenTelemetry.Exporter.Console
: 1.2.0-rc3OpenTelemetry.Exporter.InMemory
: 1.2.0-rc3OpenTelemetry.Exporter.OpenTelemetryProtocol
: 1.2.0-rc3OpenTelemetry.Extensions.Hosting
: 1.0.0-rc10Runtime version (e.g.
net461
,net48
,netcoreapp3.1
,net5.0
etc. You canfind this information from the
*.csproj
file):net6.0
Symptom
A clear and concise description of what the bug is.
What is the expected behavior?
Metrics being flushed automatically every 1 minute
What is the actual behavior?
Metrics were not being flushed and diagnostic logs don't provide any entries other than null.
However, as mitigation, I need to call
ForceFlush
to emit the metrics.Reproduce
When constructing a meter provider as following, it used to automatically flush metrics:
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: