Preserve distributed job context and expose grade 4 operational signals

This commit is contained in:
Artyom
2026-11-06 12:57:10 +03:00
parent 1a171d0d0f
commit 44d81fd80e
32 changed files with 1098 additions and 35 deletions
+1
View File
@@ -131,6 +131,7 @@ def tempo_spans(body):
duration = (int(span["endTimeUnixNano"]) - int(span["startTimeUnixNano"])) / 1e6
spans.append({"service": service, "name": span["name"], "kind": span.get("kind"),
"status": span.get("status", {}).get("code", "STATUS_CODE_UNSET"),
"span_id": span.get("spanId"), "parent_span_id": span.get("parentSpanId"),
"duration_ms": round(duration, 3), "links": len(span.get("links", [])),
"attributes": values})
return spans