-
-
Notifications
You must be signed in to change notification settings - Fork 69
Tempo Tracing
Lorenzo Mangani edited this page Jan 2, 2022
·
35 revisions

cLoki Pulse offers experimental support for the Grafana Tempo API providing span ingestion and querying
Within cLoki, Tempo Spans/Traces are stored as tagged Logs and are accessible from both LogQL and Tempo APIs
cLoki implements a basic OpenTelemetry/Zipkin JSON receiver API to ingest trace data
curl -X POST http://localhost:3100/tempo/api/push -H 'Content-Type: application/json' -d '[{
"id": "1234",
"traceId": "d6e9329d67b6146b",
"timestamp": '$(date +%s%N | cut -b1-16)',
"duration": 100000,
"name": "span from bash!",
"tags": {
"http.method": "GET",
"http.path": "/api"
},
"localEndpoint": {
"serviceName": "shell script"
}
}]'
curl -X POST http://localhost:3100/tempo/api/push -H 'Content-Type: application/json' -d '[{
"id": "5678",
"traceId": "d6e9329d67b6146b",
"parentId": "1234",
"timestamp": '$(date +%s%N | cut -b1-16)',
"duration": 100000,
"name": "child span from bash!",
"localEndpoint": {
"serviceName": "shell script"
}
}]'