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 Histogram exemplar support #310

Merged
merged 4 commits into from
Feb 1, 2024
Merged

Conversation

alexcardell
Copy link
Contributor

@alexcardell alexcardell commented May 9, 2023

Add Prometheus exemplars

Allowing jumping from histogram buckets to relevant trace IDs

I feel an extension method in a Natchez / Otel4s module could be helpful for auto exemplar-ing traceable effects, but that could quite easily be done in user-land

Whether the tuple overload method is necessary is up for debate, but it does match the Java API with a small improvement: no assumption that the varargs list is even

Copy link
Contributor

@ybasket ybasket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm no maintainer (so I can't merge), but code looks good to me, looking forward to this feature 👍

EDIT: Seems as there's an issue with Scala 2.12 though, Map conversion works differently there.

@alexcardell
Copy link
Contributor Author

The Java conversion error failing the 2.12 build goes away now that this branch is updated, as the Labels Map API has been removed

@sideeffffect sideeffffect merged commit 3b1ecf0 into davenverse:main Feb 1, 2024
6 checks passed
@sideeffffect
Copy link
Contributor

Thank you for your contribution, released as https://github.com/davenverse/epimetheus/releases/tag/v0.6.0-M2

@alexcardell alexcardell deleted the exemplars branch September 17, 2024 13:06
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.

3 participants