Add labels from headers in web_transaction metrics
- GraphQL calls return feature category and query file name to server
- Add labels from headers in web_transaction metrics
- Add x-gitlab-feature-category header to startup gql calls
What does this MR do?
This MR uses the headers added in !66937 (merged) in the labels
sent to prometheus.
Screenshots or Screencasts (strongly suggested)
From the /-/metrics
local endpoint after viewing an issue. You'll notice that "Before" only has feature_category="not_owned"
. In the "After", the feature_category
is being set from the request headers sent to the GraphqlController
.
Before | After |
---|---|
References
Related to #328535
Edited by Paul Slaughter