Amazon X-Ray TraceGraph API

The TraceGraph API from Amazon X-Ray — 1 operation(s) for tracegraph.

GitHub OpenAPI
Business capability
Observability Management BC-4220.20

Operations 1

POST /TraceGraph Get Trace Graph #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-xray:amazon-xray-tracegraph-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-xray-tracegraph-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS X-Ray Tracegraph API
  version: '2016-04-12'
  description: Generated from AWS's published Smithy model for AWS X-Ray. 1 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://xray.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /TraceGraph:
    post:
      operationId: GetTraceGraph
      summary: Get Trace Graph
      description: Retrieves a service graph for one or more specific trace IDs.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTraceGraphResult'
        '400':
          description: InvalidRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '429':
          description: ThrottledException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottledException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                TraceIds:
                  type: array
                  items:
                    type: string
                  description: Trace IDs of requests for which to generate a service graph.
                NextToken:
                  type: string
                  description: Pagination token.
              required:
              - TraceIds
      tags:
      - Tracegraph
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: xray
  schemas:
    Alias:
      type: object
      properties:
        Name:
          type: string
          description: The canonical name of the alias.
        Names:
          type: array
          items:
            type: string
          description: A list of names for the alias, including the canonical name.
        Type:
          type: string
          description: The type of the alias.
    Edge:
      type: object
      properties:
        ReferenceId:
          type: integer
          description: Identifier of the edge. Unique within a service map.
        StartTime:
          type: string
          format: date-time
          description: The start time of the first segment on the edge.
        EndTime:
          type: string
          format: date-time
          description: The end time of the last segment on the edge.
        SummaryStatistics:
          $ref: '#/components/schemas/EdgeStatistics'
        ResponseTimeHistogram:
          type: array
          items:
            $ref: '#/components/schemas/HistogramEntry'
          description: A histogram that maps the spread of client response times on an edge. Only populated for synchronous
            edges.
        Aliases:
          type: array
          items:
            $ref: '#/components/schemas/Alias'
          description: Aliases for the edge.
        EdgeType:
          type: string
          description: Describes an asynchronous connection, with a value of link.
        ReceivedEventAgeHistogram:
          type: array
          items:
            $ref: '#/components/schemas/HistogramEntry'
          description: A histogram that maps the spread of event age when received by consumers. Age is calculated each time
            an event is received. Only populated when EdgeType is link.
    EdgeStatistics:
      type: object
      properties:
        OkCount:
          type: integer
          description: The number of requests that completed with a 2xx Success status code.
        ErrorStatistics:
          $ref: '#/components/schemas/ErrorStatistics'
        FaultStatistics:
          $ref: '#/components/schemas/FaultStatistics'
        TotalCount:
          type: integer
          description: The total number of completed requests.
        TotalResponseTime:
          type: number
          description: The aggregate response time of completed requests.
    ErrorStatistics:
      type: object
      properties:
        ThrottleCount:
          type: integer
          description: The number of requests that failed with a 429 throttling status code.
        OtherCount:
          type: integer
          description: The number of requests that failed with untracked 4xx Client Error status codes.
        TotalCount:
          type: integer
          description: The total number of requests that failed with a 4xx Client Error status code.
    FaultStatistics:
      type: object
      properties:
        OtherCount:
          type: integer
          description: The number of requests that failed with untracked 5xx Server Error status codes.
        TotalCount:
          type: integer
          description: The total number of requests that failed with a 5xx Server Error status code.
    GetTraceGraphResult:
      type: object
      properties:
        Services:
          type: array
          items:
            $ref: '#/components/schemas/Service'
          description: The services that have processed one of the specified requests.
        NextToken:
          type: string
          description: Pagination token.
    HistogramEntry:
      type: object
      properties:
        Value:
          type: number
          description: The value of the entry.
        Count:
          type: integer
          description: The prevalence of the entry.
    InvalidRequestException:
      type: object
      properties:
        Message:
          type: string
    Service:
      type: object
      properties:
        ReferenceId:
          type: integer
          description: Identifier for the service. Unique within the service map.
        Name:
          type: string
          description: The canonical name of the service.
        Names:
          type: array
          items:
            type: string
          description: A list of names for the service, including the canonical name.
        Root:
          type: boolean
          description: Indicates that the service was the first service to process a request.
        AccountId:
          type: string
          description: Identifier of the Amazon Web Services account in which the service runs.
        Type:
          type: string
          description: The type of service. Amazon Web Services Resource - The type of an Amazon Web Services resource. For
            example, AWS::EC2::Instance for an application running on Amazon EC2 or AWS::DynamoDB::Table for an Amazon DynamoDB
            table that the application used. Amazon Web Services Service - The type of an Amazon Web Services service. For
            example, AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't target a specific table. client - Represents
            the clients that sent requests to a root service. remote - A downstream service of indeterminate type.
        State:
          type: string
          description: The service's state.
        StartTime:
          type: string
          format: date-time
          description: The start time of the first segment that the service generated.
        EndTime:
          type: string
          format: date-time
          description: The end time of the last segment that the service generated.
        Edges:
          type: array
          items:
            $ref: '#/components/schemas/Edge'
          description: Connections to downstream services.
        SummaryStatistics:
          $ref: '#/components/schemas/ServiceStatistics'
        DurationHistogram:
          type: array
          items:
            $ref: '#/components/schemas/HistogramEntry'
          description: A histogram that maps the spread of service durations.
        ResponseTimeHistogram:
          type: array
          items:
            $ref: '#/components/schemas/HistogramEntry'
          description: A histogram that maps the spread of service response times.
    ServiceStatistics:
      type: object
      properties:
        OkCount:
          type: integer
          description: The number of requests that completed with a 2xx Success status code.
        ErrorStatistics:
          $ref: '#/components/schemas/ErrorStatistics'
        FaultStatistics:
          $ref: '#/components/schemas/FaultStatistics'
        TotalCount:
          type: integer
          description: The total number of completed requests.
        TotalResponseTime:
          type: number
          description: The aggregate response time of completed requests.
    ThrottledException:
      type: object
      properties:
        Message:
          type: string
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/xray/service/2016-04-12/xray-2016-04-12.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)