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 labels for both new and passed-in registry paths #27

Merged
merged 1 commit into from
Apr 6, 2024

Conversation

ktkenny
Copy link
Contributor

@ktkenny ktkenny commented Apr 4, 2024

The alternate path added here #26 which enabled creating metrics from a predefined registry did not add the extra labels to the metrics.

This PR unifies both paths to explicitly define metric labels during creation rather than passing in the Extras map to the OpenHTTPTSDBWithConfig call.

@ktkenny ktkenny marked this pull request as ready for review April 4, 2024 23:34
@ktkenny ktkenny requested a review from a team April 4, 2024 23:34
Copy link

@ralph-tice ralph-tice left a comment

Choose a reason for hiding this comment

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

we probably should start bumping

var Version = "0.0.0"
as we continue to make changes, WDYT?

or at least update it to match the tags we've been creating, not sure

m.reg.Unregister(name("NewSampleRate"))
m.reg.Unregister(name("RateLimitDrops"))
m.reg.Unregister(name("BytesSent"))
m.reg.Unregister("client_Total")

Choose a reason for hiding this comment

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

nice simplification 🧹

@ktkenny ktkenny merged commit a784368 into master Apr 6, 2024
4 checks passed
@ktkenny
Copy link
Contributor Author

ktkenny commented Apr 6, 2024

we probably should start bumping

var Version = "0.0.0"

as we continue to make changes, WDYT?
or at least update it to match the tags we've been creating, not sure

I don't know. Not sure who else uses this library and am trying to be as minimally invasive as possible. Perhaps to a fault lol.

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.

2 participants