-
Notifications
You must be signed in to change notification settings - Fork 921
Clarify log record severity comparison #4552
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
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This applied suggestion makes this PR blocked by: |
SIG meeting notes: |
I feel that this PR does not contradict with the proposal to allow only 0..24 when exporting via OTLP. |
Logs SIG meeting: We also agreed that, due to the current state of Logs language implementations and the OTLP proto definition, we can only RECOMMEND using values between 0 and 24. |
corresponding short names). | ||
comparisons `SeverityNumber` field should be used. | ||
Special handling MAY be given to `SeverityNumber=0` | ||
when it is used to represent an unspecified severity. |
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.
How do you know whether SeverityNumberr=0
if used as unspecified value or not?
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.
This is applicable for language implementations where SeverityNumber=0
represents unspecified value. For them SeverityNumber=0
is always used to say that the value is unspecified.
I am not sure if we need to say anything for languages like Rust or Swift.
@open-telemetry/rust-maintainers, @open-telemetry/swift-maintainers: WDYT?
Reference: #4535
Follows:
SeverityNumber=0
MAY be used to represent an unspecified value #4535Why
Related to #4540
Supersedes #4541 per #4541 (comment) and discussions from the last OTel Specification and Logs SIG meetings.
Some comments that were already expressed as comments.
From #4541 (comment):
From #4541 (comment):
This is also inline with
opentelemetry-specification/specification/logs/data-model.md
Lines 323 to 329 in 7e7c0bd
From #4540 (comment):
We agreed that this PR does conflict proposal to allow only allow/support 0..24 SeverityNumber values.
What
Removal of
as I find that this sentence is more confusing than clarifying:
SeverityNumber
that are greater than 24 or lesser than 1?Removal of duplicated description
Moving the comparison example to a better place where the
SeverityNumber
comparison is describedSimplify
SeverityProcessor
example.Prototype
This is exactly how https://pkg.go.dev/go.opentelemetry.io/contrib/processors/minsev currently works.