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

fix: add appName to http response time metrics #2117

Merged
merged 3 commits into from
Sep 30, 2022

Conversation

ivarconr
Copy link
Member

About the changes

This small fix adds a appName label to the http_request_duration_milliseconds Prometheus metrics. It is taken from the unleash-appname header, used by all official Unleash SDKs. This makes it easier to debug chatty applications.

@vercel
Copy link

vercel bot commented Sep 30, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
unleash-docs ✅ Ready (Inspect) Visit Preview Sep 30, 2022 at 11:31AM (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview Sep 30, 2022 at 11:31AM (UTC)

@ivarconr ivarconr force-pushed the fix/add-appname-to-request-metrics branch from 1577df8 to 7a8f79f Compare September 30, 2022 08:43
Copy link
Contributor

@gardleopard gardleopard left a comment

Choose a reason for hiding this comment

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

LGTM, tested locally and we get the appName in.

Im a bit afraid of getting too many dimensions by this tho. Maybe we can put it behind a flag so that we can test it a bit before letting it out to everyone?

@ivarconr
Copy link
Member Author

Im a bit afraid of getting too many dimensions by this tho. Maybe we can put it behind a flag so that we can test it a bit before letting it out to everyone?

Good point. Added a experimental flag now, so we can enable it only for selected customers in production. When disabled we will always set appName="undefined" so it should not create extra dimensions when disabled.

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

Successfully merging this pull request may close these issues.

None yet

2 participants