GeezerVison is showing github.com — Define "none" numeric value by Kielek · Pull Request #3000 · open-telemetry/opentelemetry-specification
Conversation
Fixes N/A
Changes
Define "none" numeric value.
It will be useful to correctly set OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT to no limit. For now, it should use int.maxvalue or similar values.
Related issues for enum handling #2102
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
pellared
left a comment
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
👍
PS. Feels very "Pythonish" 😉
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Oberon00
left a comment
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
First, I don't think this is specific to numeric values. Booleans, strings, enums, etc., might accept "null" values just as well.
Second, there is no concept of "null value" in this environment specification, so this specification, as written now, has no meaning (or an unclear meaning).
Your goal seems to allow explicitly setting "no limit" in the limit configuration. You should add a more specific spec to that subsection, instead of the generic section here.
(PS: Congrats on creating PR #3000 🥳)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
It will be useful to correctly set OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT to no limit. For now, it should use int.maxvalue or similar values.
Why would someone want "no limit"? Related to #2960 (comment).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Need to understand why "no limit" is needed.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
pellared
commented
Dec 5, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Need to understand why "no limit" is needed.
I agree that "unbounded limits" is a bad practice from "reliability" standpoint. But I do not see anything in the spec that disallows limitless configurations. Current default for OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT and OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT is "no limit". Wouldn't changing it be a breaking change?
Related comment: #2045 (comment)
If it is possible to have a unlimited configuration then we should allow setting it.
I have no clear nor strong opinion 😆
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR was marked stale due to lack of activity. It will be closed in 7 days.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I am closing this issue per last .NET AutoInstrumentation Discussion with @carlosalberto.
For now, there will be no possibility to set no-limit options. It is considered as to unpredictable.
Instead we should consider to change default values for OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT and OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT . I do not think that is is good practice to have default value which cannot be set by appropriate env. value.
|
Oberon00 reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
reyang
reyang requested changes
pellared
pellared approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|