-
-
Notifications
You must be signed in to change notification settings - Fork 106
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 endpoint as a tag on HTTP events #142
base: master
Are you sure you want to change the base?
Add endpoint as a tag on HTTP events #142
Conversation
Thanks for opening up the PR Nick. Really appreciate the contribution :). Below are my answers for all the questions that you had:
Hope that helps! |
@akoutmos Thanks for the feedback! I added the As for re-generating the test events. I think I have a sense of what needs to be done; but have two more questions.
Cheers 🤙 |
Hey @akoutmos was just hoping to follow up on my questions above :) |
Thanks for pinging me on Slack, I must have missed your messages in my inbox -_-. Below are the answers to your questions:
Hope that helps! |
Change description
What problem does this solve?
Adds the Phoenix endpoint as a tag value for HTTP metrics. This change allows the panels to take into account the value of the "Endpoint" dropdown on the Phoenix dashboard.
Issue number: (if applicable)
Slack question: https://elixir-lang.slack.com/archives/C01NZ0FBFSR/p1652968317581179
Additional details and screenshots
Checklist
I have a few questions so I have opened this PR as a draft.
conn
than pulling it out of the:private
key? Obviously, this is not a public API I am reaching into.TestApp.Endpoint
,TestApp.Endpoint2
and the generated events which are being used by the tests. Bothsupport/events/phoenix.exs
andsupport/events/phoenix_multi_router.exs
have data for an endpoint from an app namedMyAppWeb
. This means the tests are wrong. I expect to seeTestApp.Endpoint2
as the endpoint tag for requests sent to/internal/*
. What is the best way to re-generate the sample metrics?