View a markdown version of this page

SpanContext - Amazon Bedrock AgentCore Data Plane
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

SpanContext

The contextual information that uniquely identifies a span within the distributed tracing system. Contains session, trace, and span identifiers used to correlate evaluation results with specific agent execution points.

Contents

sessionId

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

Type: String

Required: Yes

spanId

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.

Type: String

Required: No

traceId

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

Type: String

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: