-
Notifications
You must be signed in to change notification settings - Fork 527
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
Metrics generator: make status_message a default dimension #1794
Metrics generator: make status_message a default dimension #1794
Conversation
The metric label status_message is generated by default, it is no longer required to add the corresponding dimension to the user defined dimensions
When user defined dimensions correspond to the same label as one of the intrinsic dimensions (e.g. status.code) the label for the user defined dimension is prefixed with double underscore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, this looks good to me. I'll leave to give some teammates a chance to review who might be more familiar with the specifics of the labels.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor questions/suggestions. looks good!
can we add some details in the span metrics docs about the list of "special" attributes and how we handle collisions?
something in here:
https://github.com/grafana/tempo/tree/main/docs/tempo/website/metrics-generator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc update looks good. Thank you for adding the info.
846f02a
to
e951758
Compare
Good point, I added a paragraph about default labels and collisions with dimensions to the metrics generator docs ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Going to leave for a second in case @knylander-grafana has thoughts on the docs changes.
…default (#1960) * Add intrinsic dimenstions to spanmetrics config * Remove deprecated linters from glangci-lint config The linters deadcode, structcheck, and varcheck are deprecated since golangci-lint v1.49.0. They are replace by unused which is already enabled in our config * Make intrinsic dimensions configurable for spanmetrics * Disable intrinsic dimension status_message by default * Add overrides for intrinsic dimension configuration * Docs for the configuration of intrinsic dimensions * Add PR to changelog * Regenerate configuration schema in manifest.md * Handle dimensions as conflicts when intrinsic dimension is absent Custom dimensions from span attributs are also treated as conflicts when the conflicting intrinsic dimension is not actually present. This prevents those dimensions from being renamed when the intrinsic dimension configuration changes * Mark change #1794 as breaking in changelog * Unit test for intrinsic dimension override * Fail on invalid intrinsic dimension override keys * Fix dimension prefix in changelog
What this PR does:
status_message
is now generated by default, it is no longer required to add the corresponding dimension to the user defined dimensions. PR Metrics generator: extract status_message field from spans #1786 addressed the same problem of making the status message available as a metric label. However, addingstatus_message
as a default dimension is more consistent with the closely related default dimensionstatus_code
.Which issue(s) this PR fixes:
Fixes #1764
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]