Skip to content
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

[feature request] could you re-throw the exception or log the exception #5931

Open
panbohaha opened this issue Oct 29, 2024 · 0 comments
Open
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

Comments

@panbohaha
Copy link

panbohaha commented Oct 29, 2024

Package

[Code](

)

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

@panbohaha panbohaha added enhancement New feature or request needs-triage New issues which have not been classified or triaged by a community member labels Oct 29, 2024
@TimothyMothra TimothyMothra added the pkg:OpenTelemetry.Exporter.Prometheus.HttpListener Issues related to OpenTelemetry.Exporter.Prometheus.HttpListener NuGet package label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants