-
Notifications
You must be signed in to change notification settings - Fork 530
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
Make intrinsic dimensions configurable and disable status_message by default #1960
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f21da45
Add intrinsic dimenstions to spanmetrics config
stoewer 67bd81e
Remove deprecated linters from glangci-lint config
stoewer b0ebdf0
Make intrinsic dimensions configurable for spanmetrics
stoewer ee9ca98
Disable intrinsic dimension status_message by default
stoewer 76f0fed
Add overrides for intrinsic dimension configuration
stoewer ead9f43
Docs for the configuration of intrinsic dimensions
stoewer e5a69fd
Add PR to changelog
stoewer 49411b2
Regenerate configuration schema in manifest.md
stoewer fb9d999
Handle dimensions as conflicts when intrinsic dimension is absent
stoewer e219a6c
Mark change #1794 as breaking in changelog
stoewer 45b6e36
Unit test for intrinsic dimension override
stoewer 9088882
Fail on invalid intrinsic dimension override keys
stoewer 027a59a
Fix dimension prefix in changelog
stoewer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -284,10 +284,26 @@ metrics_generator: | |
# Buckets for the latency histogram in seconds. | ||
[histogram_buckets: <list of float> | default = 0.002, 0.004, 0.008, 0.016, 0.032, 0.064, 0.128, 0.256, 0.512, 1.02, 2.05, 4.10] | ||
|
||
# Additional dimensions to add to the metrics along with the default dimensions | ||
# (service, span_name, span_kind, status_code, and status_message). Dimensions are searched | ||
# for in the resource and span attributes and are added to the metrics if present. | ||
# Configure intrinsic dimensions to add to the metrics. Intrinsic dimensions are taken | ||
# directly from the respective resource and span properties. | ||
intrinsic_dimensions: | ||
# Whether to add the name of the service the span is associated with. | ||
[service: <bool> | default = true] | ||
# Whether to add the name of the span. | ||
[span_name: <bool> | default = true] | ||
# Whether to add the span kind describing the relationship between spans. | ||
[span_kind: <bool> | default = true] | ||
# Whether to add the span status code. | ||
[status_code: <bool> | default = true] | ||
# Whether to add a status message. Important note: The span status message may | ||
# contain arbitrary strings and thus have a very high cardinality. | ||
[status_message: <bool> | default = false] | ||
|
||
# Additional dimensions to add to the metrics along with the intrinsic dimensions. | ||
# Dimensions are searched for in the resource and span attributes and are added to | ||
# the metrics if present. | ||
[dimensions: <list of string>] | ||
|
||
|
||
# Registry configuration | ||
registry: | ||
|
@@ -1152,6 +1168,8 @@ overrides: | |
[metrics_generator_processor_service_graphs_histogram_buckets: <list of float>] | ||
[metrics_generator_processor_service_graphs_dimensions: <list of string>] | ||
[metrics_generator_processor_span_metrics_histogram_buckets: <list of float>] | ||
# Allowed keys for intrinsic dimensions are: service, span_name, span_kind, status_code, and status_message. | ||
[metrics_generator_processor_span_metrics_intrinsic_dimensions: <map string to bool>] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. may want to add a quick note about what strings are legal as keys |
||
[metrics_generator_processor_span_metrics_dimensions: <list of string>] | ||
|
||
# Maximum number of active series in the registry, per instance of the metrics-generator. A | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
i believe there's a breaking change here (or perhaps one in #1786) that should be mentioned. If the user has a configured normal attribute dimension called
status_message
then it's name will change to__status_message
.See below for comments on the renaming behavior.
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.
Agreed. I think the actual breaking change was in #1794. I marked the change as breaking in the changelog.