Skip to content

Commit

Permalink
update semcov
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-gtokernliang committed Dec 21, 2024
1 parent d8a4062 commit 6b063f5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/otel/semconv/trulens/otel/semconv/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,23 @@ class SpanAttributes:
Base prefix for the other keys.
"""

SPAN_TYPE = BASE + "span_type"
"""
Span type attribute.
"""

SELECTOR_NAME_KEY = "selector_name"
"""
Key for the user-defined selector name for the current span.
Here to help us check both trulens.selector_name and selector_name
to verify the user attributes and make corrections if necessary.
"""

SELECTOR_NAME = BASE + "selector_name"
SELECTOR_NAME = BASE + SELECTOR_NAME_KEY
"""
User-defined selector name for the current span.
"""

SPAN_TYPE = "trulens.span_type"
"""Key for the span type attribute."""

RECORD_ID = "trulens.record_id"
"""ID of the record that the span belongs to."""

SPAN_TYPES = "trulens.span_types"

class SpanType(str, Enum):
"""Span type attribute values.
Expand Down

0 comments on commit 6b063f5

Please sign in to comment.