mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* rename batches property of Trace to ResourceSpans to be OTEL compatible * added test to assert that the response hasn't change * update test data * fix unmarshall test * changelog * fix e2e * try to fix flaky test * create helper functions to marshal and unmarshal traces to OTEL compatible schema * added better documentation
51 lines
1.3 KiB
JSON
51 lines
1.3 KiB
JSON
{
|
|
"batches": [
|
|
{
|
|
"resource": {
|
|
"attributes": [
|
|
{
|
|
"key": "service.name",
|
|
"value": {
|
|
"stringValue": "my.service"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scopeSpans": [
|
|
{
|
|
"scope": {
|
|
"name": "my.library",
|
|
"version": "1.0.0",
|
|
"attributes": [
|
|
{
|
|
"key": "my.scope.attribute",
|
|
"value": {
|
|
"stringValue": "some scope attribute"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"spans": [
|
|
{
|
|
"traceId": "5B8EFFF798038103D269B633813FC60C",
|
|
"spanId": "EEE19B7EC3C1B174",
|
|
"parentSpanId": "EEE19B7EC3C1B173",
|
|
"name": "I'm a server span",
|
|
"startTimeUnixNano": "1544712660000000000",
|
|
"endTimeUnixNano": "1544712661000000000",
|
|
"kind": 2,
|
|
"attributes": [
|
|
{
|
|
"key": "my.span.attr",
|
|
"value": {
|
|
"stringValue": "some value"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |