fix(telemetry): query_spans

# What does this PR do?


## Test Plan
This commit is contained in:
Eric Huang 2025-03-28 20:42:15 -07:00
parent e58c7f6c37
commit fe090ce14d
2 changed files with 52 additions and 0 deletions

View file

@ -202,6 +202,8 @@ class TelemetryAdapter(TelemetryDatasetMixin, Telemetry):
parent_span_id = int(event.payload.parent_span_id, 16)
parent_span = _GLOBAL_STORAGE["active_spans"].get(parent_span_id)
context = trace.set_span_in_context(parent_span)
else:
event.attributes["__root_span__"] = "true"
span = tracer.start_span(
name=event.payload.name,