Preserve distributed job context and expose grade 4 operational signals
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user