-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[chore] Update tests for confmap strict type change #34027
[chore] Update tests for confmap strict type change #34027
Conversation
@@ -4,7 +4,7 @@ receivers: | |||
processors: | |||
|
|||
probabilistic_sampler/traces: | |||
sampling_percentage: +Inf | |||
sampling_percentage: 999_999_999_999_999_999_999_999_999_999_999_999_999 |
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.
is +Inf
no longer supported?
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 wasn't able to find a way to get it interpreted as a float. I tried !!float +Inf
and got this error message:
cannot resolve the configuration: cannot retrieve the configuration: yaml: cannot decode !!str `+Inf` as a !!float
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.
From https://yaml.org/spec/1.2.2/#1032-tag-resolution, +.Inf
should work
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.
Updated this on dde0255
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.
Thanks!
@@ -1,7 +1,8 @@ | |||
failover: | |||
|
|||
failover/default: | |||
priority_levels: [traces] | |||
priority_levels: | |||
- [traces] |
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.
should this be - traces
?
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.
The field is a [][]
Make room for open-telemetry/opentelemetry-collector#10554