Skip to content

Can SeverityNumber go beyond 24? #4714

@tisonkun

Description

@tisonkun

What are you trying to achieve?

In the current spec, we define ranges of SeverityNumber:

SeverityNumber range Range name Meaning
1-4 TRACE A fine-grained debugging event. Typically disabled in default configurations.
5-8 DEBUG A debugging event.
9-12 INFO An informational event. Indicates that an event happened.
13-16 WARN A warning event. Not an error but is likely more important than an informational event.
17-20 ERROR An error event. Something went wrong.
21-24 FATAL A fatal error such as application or system crash.

And also reserve 0 as a possible unspecified value.

However, I wonder what happens if the passed severity number goes beyond 24?

What did you expect to see?

Need a clarification or answer.

Additional context.

Add any other context about the problem here. If you followed an existing documentation, please share the link to it.

This can be related to rust-lang/log#334 where people are evaluating opentelemetry's data model as its level repr.

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sig-issueA specific SIG should look into this before discussing at the specspec:logsRelated to the specification/logs directory

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions