Skip to content

SpanContext

Source code in docs_src/capo_bedrock_agentcore/types/span_context.py
class SpanContext(TypedDict, closed=True):
    session_id: "str"
    """<p> The unique identifier of the session containing this span. Sessions represent complete conversation flows and are detected using configurable <code>SessionTimeoutMinutes</code> (default 15 minutes). </p>"""
    trace_id: NotRequired["str"]
    """<p> The unique identifier of the trace containing this span. Traces represent individual request-response interactions within a session and group related spans together. </p>"""
    span_id: NotRequired["str"]
    """<p> The unique identifier of the specific span being referenced. Spans represent individual operations like tool calls, model invocations, or other discrete actions within the agent's execution. </p>"""

session_id instance-attribute

session_id: str

The unique identifier of the session containing this span. Sessions represent complete conversation flows and are detected using configurable SessionTimeoutMinutes (default 15 minutes).

span_id instance-attribute

span_id: NotRequired[str]

The unique identifier of the specific span being referenced. Spans represent individual operations like tool calls, model invocations, or other discrete actions within the agent's execution.

trace_id instance-attribute

trace_id: NotRequired[str]

The unique identifier of the trace containing this span. Traces represent individual request-response interactions within a session and group related spans together.