[feature request] could you re-throw the exception or log the exception #5931
Labels
enhancement
New feature or request
needs-triage
New issues which have not been classified or triaged by a community member
pkg:OpenTelemetry.Exporter.Prometheus.HttpListener
Issues related to OpenTelemetry.Exporter.Prometheus.HttpListener NuGet package
Package
[Code](
opentelemetry-dotnet/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs
Line 306 in 84ff215
Is your feature request related to a problem?
I can't get the exported metrics, since export failed. but I can't find the root cause.
What is the expected behavior?
when enable the file for OTEL_DIAGNOSTICS.json, the error should write the log file
Which alternative solutions or features have you considered?
re-throw the exception or log the exception
Additional context
logs:
2024-10-29T03:08:32.2152465Z:MetricReader event: '{0}'{MetricReader.Collect method called.}
2024-10-29T03:08:32.2153132Z:MetricReader event: '{0}'{MetricReader.OnCollect called.}
2024-10-29T03:08:32.2155269Z:MetricReader event: '{0}'{Observable instruments collected.}
2024-10-29T03:08:32.2155554Z:MetricReader event: '{0}'{ProcessMetrics called.}
2024-10-29T03:08:32.2155563Z:MetricReader event: '{0}'{BaseExportingMetricReader calling OpenTelemetry.Exporter.Prometheus.PrometheusExporter.Export method.}
2024-10-29T03:08:32.2173473Z:MetricReader event: '{0}'{OpenTelemetry.Exporter.Prometheus.PrometheusExporter.Export failed.}
2024-10-29T03:08:32.2173546Z:MetricReader event: '{0}'{ProcessMetrics failed.}
2024-10-29T03:08:32.2173562Z:MetricReader event: '{0}'{MetricReader.Collect failed.}
2024-10-29T03:08:32.2173668Z:No metrics are available for export.
No response
The text was updated successfully, but these errors were encountered: