open-telemetry / semantic-conventions

Defines standards for generating consistent, accessible telemetry across a variety of domains
Apache License 2.0
276 stars 175 forks source link

Event yaml definition should allow to document SeverityNumber #828

Open lmolkova opened 8 months ago

lmolkova commented 8 months ago

Area(s)

area:events

What happened?

Description

Based on the spec-ed out Event parameters, events have optional SeverityNumber

But none of the existing events document it and it's not covered in the https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/events.md

Expected Result

We have a way to define and document severity for the events.

Semantic convention version

1.24.0

Additional context

No response

tedsuo commented 5 months ago

@lmolkova I don't think we should associate events with a specific severity number. The severity of an event is based to the context in which the event is occurring, not intrinsic to the event itself.

For example, the same exception may be an error or a warning depending on the context. Other events may be debug, info, or warn depending on their context. Based on that, I don't think it is correct to imply there is a default or "correct" severity for events.

MSNev commented 5 months ago

Events SDK default for SeverityNumber https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/event-sdk.md

lmolkova commented 5 months ago

Discussed at semconv WG 6/17: