aip_sdk.CanonicalTrace
aip_sdk.CanonicalTrace
A trace: the tree of spans sharing one trace_id.
tags holds per-trace tags overlaid at read time (see
aip_sdk.trace_tags).
aip_sdk.CanonicalTrace.by_kind
aip_sdk.CanonicalTrace.by_kind(kind: SpanKind) -> list[CanonicalSpan]
Return this trace's spans of a given kind.
Parameters
kindSpanKind: The span kind to filter by.
Returns
list[CanonicalSpan]: The spans whosekindequalskind, in trace order.
aip_sdk.CanonicalTrace.model_config
aip_sdk.CanonicalTrace.model_config = ConfigDict(extra='allow')
No docstring is defined in the source.
aip_sdk.CanonicalTrace.roots
aip_sdk.CanonicalTrace.roots() -> list[CanonicalSpan]
Return the trace's root spans (those with no parent).
Returns
list[CanonicalSpan]: The spans whoseparent_idisNone.
aip_sdk.CanonicalTrace.spans
aip_sdk.CanonicalTrace.spans: list[CanonicalSpan] = Field(default_factory=list[CanonicalSpan])
No docstring is defined in the source.
aip_sdk.CanonicalTrace.tags
aip_sdk.CanonicalTrace.tags: dict[str, str | None] = Field(default_factory=dict[str, 'str | None'])
No docstring is defined in the source.
aip_sdk.CanonicalTrace.trace_id
aip_sdk.CanonicalTrace.trace_id: str
No docstring is defined in the source.