Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

AWS X-Ray Traces API

Upload and retrieve trace data

AWS X-Ray Traces API is one of 9 APIs that AWS X-Ray publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 1 JSON Schema definition.

Tagged areas include Traces. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and 1 JSON Schema.

This API exposes 3 operations across 3 paths, and defines 5 schemas. It is described by OpenAPI 3.1.0, at version 2016-04-12.

Requests are made against a single base URL, https://xray.{region}.amazonaws.com.

3 operations 3 paths 5 schemas 3 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2016-04-12
Base URL
https://xray.{region}.amazonaws.com
Authentication
API Key
Resource Areas
1

Authentication & Security 1

AWS X-Ray Traces API declares 1 security scheme for authenticating requests. An API key is passed in the header as Authorization (aws_sig_v4). By default, every request must be authenticated.

  • aws_sig_v4 — AWS Signature Version 4

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 POST. Each is listed below with its method, path, parameters, and response codes.

Traces 3

Upload and retrieve trace data

POST
/Traces
AWS X-Ray Upload Trace Segments
PutTraceSegments body → 200
POST
/TraceGraph
AWS X-Ray Get a List of Traces by ID
BatchGetTraces body → 200
POST
/TraceSummaries
AWS X-Ray Get Trace Summaries
GetTraceSummaries body → 200

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are TraceSummary (13 properties), ServiceId (4 properties), Trace (4 properties), GetTraceSummariesResult (4 properties). Each schema is shown below with its type and property counts.

BatchGetTracesResult
object
3 properties
GetTraceSummariesResult
object
4 properties
Trace
object
4 properties
ServiceId
object
4 properties
TraceSummary
object
13 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

aws-x-ray-traces-api-openapi.yml Raw ↑

Other APIs AWS X-Ray publishes across the network.

AWS X-Ray Encryption API
AWS X-Ray Groups API
AWS X-Ray Insights API
AWS X-Ray Sampling API
AWS X-Ray Service Graph API
AWS X-Ray TagResource API
AWS X-Ray Tags API
AWS X-Ray UntagResource API