Skip to main content
POST
/
api
/
v1
/
data
/
traces
cURL
curl --request POST \
  --url https://tenant.name/api/v1/data/traces \
  --header 'API-Token: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "end_time": "2023-11-07T05:31:56Z",
  "operation": "<string>",
  "query_type": "TRACE_IDS",
  "service": "<string>",
  "start_time": "2023-11-07T05:31:56Z",
  "tag_filters": [
    {
      "key": "<string>",
      "numeric_value": {
        "comparison": "EQUAL",
        "value": 123
      },
      "value": {
        "in_values": [
          "<string>"
        ],
        "match": "EXACT",
        "value": "<string>"
      }
    }
  ],
  "trace_ids": [
    "<string>"
  ]
}
'
{
  "traces": [
    {
      "resource_spans": [
        {
          "resource": {
            "attributes": [
              {
                "key": "<string>",
                "value": {
                  "array_value": {
                    "values": "<array>"
                  },
                  "bool_value": true,
                  "bytes_value": "aSDinaTvuI8gbWludGxpZnk=",
                  "double_value": 123,
                  "int_value": "<string>",
                  "kvlist_value": {
                    "values": "<array>"
                  },
                  "string_value": "<string>"
                }
              }
            ],
            "dropped_attributes_count": 123,
            "entity_refs": [
              {
                "description_keys": [
                  "<string>"
                ],
                "id_keys": [
                  "<string>"
                ],
                "schema_url": "<string>",
                "type": "<string>"
              }
            ]
          },
          "schema_url": "<string>",
          "scope_spans": [
            {
              "schema_url": "<string>",
              "scope": {
                "attributes": [
                  {
                    "key": "<string>",
                    "value": {
                      "array_value": {
                        "values": "<array>"
                      },
                      "bool_value": true,
                      "bytes_value": "aSDinaTvuI8gbWludGxpZnk=",
                      "double_value": 123,
                      "int_value": "<string>",
                      "kvlist_value": {
                        "values": "<array>"
                      },
                      "string_value": "<string>"
                    }
                  }
                ],
                "dropped_attributes_count": 123,
                "name": "<string>",
                "version": "<string>"
              },
              "spans": [
                {
                  "attributes": [
                    {
                      "key": "<string>",
                      "value": {
                        "array_value": {
                          "values": "<array>"
                        },
                        "bool_value": true,
                        "bytes_value": "aSDinaTvuI8gbWludGxpZnk=",
                        "double_value": 123,
                        "int_value": "<string>",
                        "kvlist_value": {
                          "values": "<array>"
                        },
                        "string_value": "<string>"
                      }
                    }
                  ],
                  "dropped_attributes_count": 123,
                  "dropped_events_count": 123,
                  "dropped_links_count": 123,
                  "end_time_unix_nano": "<string>",
                  "events": [
                    {
                      "attributes": [
                        {
                          "key": "<string>",
                          "value": {
                            "array_value": {
                              "values": "<array>"
                            },
                            "bool_value": true,
                            "bytes_value": "aSDinaTvuI8gbWludGxpZnk=",
                            "double_value": 123,
                            "int_value": "<string>",
                            "kvlist_value": {
                              "values": "<array>"
                            },
                            "string_value": "<string>"
                          }
                        }
                      ],
                      "dropped_attributes_count": 123,
                      "name": "<string>",
                      "time_unix_nano": "<string>"
                    }
                  ],
                  "flags": 123,
                  "kind": "SPAN_KIND_INTERNAL",
                  "links": [
                    {
                      "attributes": [
                        {
                          "key": "<string>",
                          "value": {
                            "array_value": {
                              "values": "<array>"
                            },
                            "bool_value": true,
                            "bytes_value": "aSDinaTvuI8gbWludGxpZnk=",
                            "double_value": 123,
                            "int_value": "<string>",
                            "kvlist_value": {
                              "values": "<array>"
                            },
                            "string_value": "<string>"
                          }
                        }
                      ],
                      "dropped_attributes_count": 123,
                      "flags": 123,
                      "span_id": "aSDinaTvuI8gbWludGxpZnk=",
                      "trace_id": "aSDinaTvuI8gbWludGxpZnk=",
                      "trace_state": "<string>"
                    }
                  ],
                  "name": "<string>",
                  "parent_span_id": "aSDinaTvuI8gbWludGxpZnk=",
                  "span_id": "aSDinaTvuI8gbWludGxpZnk=",
                  "start_time_unix_nano": "<string>",
                  "status": {
                    "code": "STATUS_CODE_OK",
                    "message": "<string>"
                  },
                  "trace_id": "aSDinaTvuI8gbWludGxpZnk=",
                  "trace_state": "<string>"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Body

application/json
end_time
string<date-time>

End time for the search.

operation
string

Operation to filter on. An empty value doesn't apply any operation filter.

query_type
enum<string>

Type of query to perform. TRACE_IDS: Search for specific trace IDs. SERVICE_OPERATION: Search for traces with a specific service and operation, over a specific time frame.

Available options:
TRACE_IDS,
SERVICE_OPERATION
service
string

Service to filter on. An empty value doesn't apply any service filter.

start_time
string<date-time>

Start time for the search.

tag_filters
object[]

Tag filter to apply. An empty value doesn't apply any tag filter.

trace_ids
string[]

Trace IDs to search for.

Response

A successful response.

traces
object[]