cURL
curl --request POST \
--url https://{tenant}.chronosphere.io/api/v1/data/traces \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"end_time": "2023-11-07T05:31:56Z",
"operation": "<string>",
"service": "<string>",
"start_time": "2023-11-07T05:31:56Z",
"tag_filters": [
{
"key": "<string>",
"numeric_value": {
"value": 123
},
"value": {
"in_values": [
"<string>"
],
"value": "<string>"
}
}
],
"trace_ids": [
"<string>"
]
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/data/traces"
payload := strings.NewReader("{\n \"end_time\": \"2023-11-07T05:31:56Z\",\n \"operation\": \"<string>\",\n \"service\": \"<string>\",\n \"start_time\": \"2023-11-07T05:31:56Z\",\n \"tag_filters\": [\n {\n \"key\": \"<string>\",\n \"numeric_value\": {\n \"value\": 123\n },\n \"value\": {\n \"in_values\": [\n \"<string>\"\n ],\n \"value\": \"<string>\"\n }\n }\n ],\n \"trace_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{tenant}.chronosphere.io/api/v1/data/traces")
.header("API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"end_time\": \"2023-11-07T05:31:56Z\",\n \"operation\": \"<string>\",\n \"service\": \"<string>\",\n \"start_time\": \"2023-11-07T05:31:56Z\",\n \"tag_filters\": [\n {\n \"key\": \"<string>\",\n \"numeric_value\": {\n \"value\": 123\n },\n \"value\": {\n \"in_values\": [\n \"<string>\"\n ],\n \"value\": \"<string>\"\n }\n }\n ],\n \"trace_ids\": [\n \"<string>\"\n ]\n}")
.asString();const options = {
method: 'POST',
headers: {'API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
end_time: '2023-11-07T05:31:56Z',
operation: '<string>',
service: '<string>',
start_time: '2023-11-07T05:31:56Z',
tag_filters: [
{
key: '<string>',
numeric_value: {value: 123},
value: {in_values: ['<string>'], value: '<string>'}
}
],
trace_ids: ['<string>']
})
};
fetch('https://{tenant}.chronosphere.io/api/v1/data/traces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{tenant}.chronosphere.io/api/v1/data/traces"
payload = {
"end_time": "2023-11-07T05:31:56Z",
"operation": "<string>",
"service": "<string>",
"start_time": "2023-11-07T05:31:56Z",
"tag_filters": [
{
"key": "<string>",
"numeric_value": { "value": 123 },
"value": {
"in_values": ["<string>"],
"value": "<string>"
}
}
],
"trace_ids": ["<string>"]
}
headers = {
"API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"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,
"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": {
"message": "<string>"
},
"trace_id": "aSDinaTvuI8gbWludGxpZnk=",
"trace_state": "<string>"
}
]
}
]
}
]
}
]
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Tracing
POST
/
api
/
v1
/
data
/
traces
cURL
curl --request POST \
--url https://{tenant}.chronosphere.io/api/v1/data/traces \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"end_time": "2023-11-07T05:31:56Z",
"operation": "<string>",
"service": "<string>",
"start_time": "2023-11-07T05:31:56Z",
"tag_filters": [
{
"key": "<string>",
"numeric_value": {
"value": 123
},
"value": {
"in_values": [
"<string>"
],
"value": "<string>"
}
}
],
"trace_ids": [
"<string>"
]
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenant}.chronosphere.io/api/v1/data/traces"
payload := strings.NewReader("{\n \"end_time\": \"2023-11-07T05:31:56Z\",\n \"operation\": \"<string>\",\n \"service\": \"<string>\",\n \"start_time\": \"2023-11-07T05:31:56Z\",\n \"tag_filters\": [\n {\n \"key\": \"<string>\",\n \"numeric_value\": {\n \"value\": 123\n },\n \"value\": {\n \"in_values\": [\n \"<string>\"\n ],\n \"value\": \"<string>\"\n }\n }\n ],\n \"trace_ids\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("API-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{tenant}.chronosphere.io/api/v1/data/traces")
.header("API-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"end_time\": \"2023-11-07T05:31:56Z\",\n \"operation\": \"<string>\",\n \"service\": \"<string>\",\n \"start_time\": \"2023-11-07T05:31:56Z\",\n \"tag_filters\": [\n {\n \"key\": \"<string>\",\n \"numeric_value\": {\n \"value\": 123\n },\n \"value\": {\n \"in_values\": [\n \"<string>\"\n ],\n \"value\": \"<string>\"\n }\n }\n ],\n \"trace_ids\": [\n \"<string>\"\n ]\n}")
.asString();const options = {
method: 'POST',
headers: {'API-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
end_time: '2023-11-07T05:31:56Z',
operation: '<string>',
service: '<string>',
start_time: '2023-11-07T05:31:56Z',
tag_filters: [
{
key: '<string>',
numeric_value: {value: 123},
value: {in_values: ['<string>'], value: '<string>'}
}
],
trace_ids: ['<string>']
})
};
fetch('https://{tenant}.chronosphere.io/api/v1/data/traces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{tenant}.chronosphere.io/api/v1/data/traces"
payload = {
"end_time": "2023-11-07T05:31:56Z",
"operation": "<string>",
"service": "<string>",
"start_time": "2023-11-07T05:31:56Z",
"tag_filters": [
{
"key": "<string>",
"numeric_value": { "value": 123 },
"value": {
"in_values": ["<string>"],
"value": "<string>"
}
}
],
"trace_ids": ["<string>"]
}
headers = {
"API-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"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,
"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": {
"message": "<string>"
},
"trace_id": "aSDinaTvuI8gbWludGxpZnk=",
"trace_state": "<string>"
}
]
}
]
}
]
}
]
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Authorizations
Chronosphere API token
Body
application/json
End time for the search.
Operation to filter on. An empty value doesn't apply any operation filter.
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 to filter on. An empty value doesn't apply any service filter.
Start time for the search.
Tag filter to apply. An empty value doesn't apply any tag filter.
Show child attributes
Show child attributes
Trace IDs to search for.
Response
A successful response.
Show child attributes
Show child attributes
⌘I

