Span fields
Each span is named after its operation, for example AgenticRetrieve. Spans record only counts, flags, and known values. They never record the content that you send or receive, such as message text, queries, filters, results, or error messages.
Fields on every span
The following table lists the fields on every span.
| Field | Description |
|---|---|
|
|
The operation that was called, for example |
|
|
The request ID that AWS Context returned to the caller. |
|
|
The account that made the call. |
|
|
The ARN of the Agent Context. |
|
|
|
|
|
|
|
|
The HTTP method of the operation. |
|
|
The HTTP status code that the caller received. |
|
|
The time in milliseconds from the start of the call to its end. For |
|
|
Present only when the call fails. Contains the name of the error. The span status is |
Each span also has these resource fields:
| Field | Description |
|---|---|
|
|
The ID of the Agent Context. |
|
|
The ARN of the Agent Context. |
|
|
The Region of the call. |
AgenticRetrieve fields
| Field | Description |
|---|---|
|
|
The number of messages in the request. |
|
|
The number of items in |
AgenticRetrieveStream fields
| Field | Description |
|---|---|
|
|
The number of messages in the request. |
|
|
The number of planning steps that finished. |
|
|
The number of finished steps with at least one warning. This counts steps, not warnings. |
|
|
The number of steps that ended with the status |
|
|
The number of items in the final result event. This field is absent if the stream ended before the final event. |
SearchAgentContext fields
| Field | Description |
|---|---|
|
|
The search type in the request. For the values, see |
|
|
The page size that the caller asked for. |
|
|
The number of comparisons in the filter: 0 with no filter, 1 for a single comparison, otherwise the number of comparisons in |
|
|
The number of items returned. |
TraverseAgentContext fields
| Field | Description |
|---|---|
|
|
The maximum depth in |
|
|
The direction in |
|
|
The number of edge types in the strategy. |
|
|
The page size that the caller asked for. |
|
|
The number of items returned. |
Example span
The following example shows a successful AgenticRetrieve span.
{ "name": "AgenticRetrieve", "kind": "SERVER", "traceId": "6b05b39169087566e2e348d8b3a6a51c", "spanId": "3c6a721a5681ee00", "parentSpanId": "b32ae34fe3bc92ee", "flags": 0, "startTimeUnixNano": 1795535762924000000, "endTimeUnixNano": 1795535772054000000, "durationNano": 9130000000, "status": { "code": "UNSET" }, "attributes": { "aws.operation.name": "AgenticRetrieve", "aws.request.id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "aws.account.id": "111122223333", "aws.resource.arn": "arn:aws:context:us-east-1:111122223333:agent-context/ac-1234567890abcdef", "aws.resource.type": "AWS::Context::AgentContext", "aws.xray.origin": "AWS::Context::AgentContext", "http.method": "POST", "http.response.status_code": 200, "http.status_code": 200, "latency_ms": 9129, "aws.context.agentic_retrieve.message_count": 1, "aws.context.agentic_retrieve.retrieved_context_count": 49, "aws.local.service": "ac-1234567890abcdef", "aws.local.operation": "AgenticRetrieve", "aws.span.kind": "SERVER", "telemetry.extended": "true" }, "resource": { "attributes": { "service.name": "ac-1234567890abcdef", "cloud.resource_id": "arn:aws:context:us-east-1:111122223333:agent-context/ac-1234567890abcdef", "cloud.region": "us-east-1" } } }
Spans can also include other fields that aren’t described on this page.