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

Add descriptions to metrics to match otelgrpc #155

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

charithe
Copy link
Contributor

@charithe charithe commented Dec 5, 2023

When otelconnect and otelgrpc are used in the same project, the Prometheus exporter fails because the descriptions of the metrics produced by the two libraries differ. See #154 for details.

This PR copies over the metrics descriptions used in the otelgrpc instrumentation to metrics produced by otelconnect.

Fixes #154

When otelconnect and otelgrpc are used in the same project, the
Prometheus exporter fails because the descriptions of the metrics
produced by the two libraries differ. See connectrpc#154 for details.

This PR copies over the metrics descriptions used in the `otelgrpc`
instrumentation to metrics produced by `otelconnect`.

Fixes connectrpc#154

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
@CLAassistant
Copy link

CLAassistant commented Dec 5, 2023

CLA assistant check
All committers have signed the CLA.

@jhump
Copy link
Member

jhump commented Dec 6, 2023

This approach seems extremely brittle, but I'm merging anyway since I don't have any better ideas for other solutions/work-arounds right now.

Thanks for the contribution, @charithe!

@jhump jhump merged commit 2a139ad into connectrpc:main Dec 6, 2023
6 checks passed
@charithe charithe deleted the metric-descriptions branch January 4, 2024 09:22
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

Successfully merging this pull request may close these issues.

Empty metrics description causes Prometheus exporter to fail
3 participants