Add category attribute to spans #1161
Labels
area:semantic-conventions
Related to semantic conventions
priority:p3
Lowest priority level
release:allowed-for-ga
Editorial changes that can still be added before GA since they don't require action by SIGs
spec:trace
Related to the specification/trace directory
What are you trying to achieve?
We have an implied span category -- that is, spans can be either
database
,faas
,messaging
, etc...But at the moment, the only way to determine what category a span belongs to is by inspecting its attributes.
I'd like to see a
span.category
added to the semantic conventions for spans.I would expect its value to be an enum of:
I suggest that this field is optional in general, but should be required for any span that falls into one of these categories. It should be omitted for general spans with a Span.Kind of
INTERNAL
.Additional context.
This came up in the discussion on PR 1142 here.
The text was updated successfully, but these errors were encountered: