forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mdatagen] Add ability to specify additional warnings in metadata.yaml (
open-telemetry#17180) - `if_enabled_not_set`: to require `enabled` field to be explicitly set by users in case the metric is going to be turned from optional to default and vice versa. - `if_configured`: to ensure that users do not configure the metric. It should be used for deprecated optional metrics that will be removed soon. This change also adds more test coverage for the metrics config unmarshaling.
- Loading branch information
Showing
130 changed files
with
4,540 additions
and
2,166 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: mdatagen | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Add ability to specify additional warnings in metadata.yaml | ||
|
||
# One or more tracking issues related to the change | ||
issues: [17180] |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
default: | ||
all_metrics: | ||
default.metric: | ||
enabled: true | ||
default.metric.to_be_removed: | ||
enabled: true | ||
optional.metric: | ||
enabled: true | ||
no_metrics: | ||
default.metric: | ||
enabled: false | ||
default.metric.to_be_removed: | ||
enabled: false | ||
optional.metric: | ||
enabled: false |
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.