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

Suspected Issue: OpenTelemetry hook does not work with Prometheus Metrics exporter #597

Open
benjaminclauss opened this issue Nov 12, 2024 · 0 comments

Comments

@benjaminclauss
Copy link

I have a basic OpenTelemetry setup for my application.
This includes a metrics provider with a Prometheus exporter.

Adding the metrics hook yields the following error.

An error has occurred while serving metrics:

error collecting metric Desc{fqName: "feature_flag_evaluation_active_count", help: "active flag evaluations counter", constLabels: {}, variableLabels: {feature_flag_key,otel_scope_name,otel_scope_version}}: cannot inject exemplar into Gauge, Summary or Untyped

I can investigate further with a simpler example but I was surprised to see this not immediately work.

Perhaps Prometheus and OpenFeature metrics do not get along?
https://github.com/prometheus/client_golang/blob/a934c3595116c0a1d5b21318718d8a0ab9d7c009/prometheus/metric.go#L207-L208

I can provide additional context if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant