MCPcopy
hub / github.com/Agenta-AI/agenta / parse_span_kind_to_enum

Function parse_span_kind_to_enum

api/oss/src/core/tracing/utils.py:361–372  ·  view source on GitHub ↗
(
    span_kind: str,
)

Source from the content-addressed store, hash-verified

359
360
361def parse_span_kind_to_enum(
362 span_kind: str,
363):
364 try:
365 return OTelSpanKind(span_kind)
366
367 except ValueError as e:
368 log.error(f"Unsupported span_kind value: {span_kind}")
369
370 raise FilteringException(
371 f"Unsupported span_kind value: {span_kind}",
372 ) from e
373
374
375def parse_status_code_to_enum(

Callers

nothing calls this directly

Calls 3

OTelSpanKindClass · 0.90
FilteringExceptionClass · 0.90
errorMethod · 0.45

Tested by

no test coverage detected