Hi, If you send an OpenTelemetry formatted span that contains span links, it should show up in Observability Cloud. To get this to work in the real-world, you'll probably need to manually instrument...
See more...
Hi, If you send an OpenTelemetry formatted span that contains span links, it should show up in Observability Cloud. To get this to work in the real-world, you'll probably need to manually instrument your source code. Here is an example json payload saved to a file "span.otel.json" and sent to a local OTel collector with: curl -X POST http://localhost:4318/v1/traces -H "Content-Type: application/json" -d @Span.otel.json {
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "service.name",
"value": {
"stringValue": "example-service"
}
},
{
"key": "service.instance.id",
"value": {
"stringValue": "instance-12345"
}
}
]
},
"scopeSpans": [
{
"scope": {
"name": "example-tracer",
"version": "1.0.0"
},
"spans": [
{
"traceId": "1e223ff1f80f1c69f8f0b81c1a2d32ad",
"spanId": "6f9b3f4d1de5bf5e",
"parentSpanId": "",
"name": "example-operation",
"kind": "SPAN_KIND_SERVER",
"startTimeUnixNano": 1706100243452000000,
"endTimeUnixNano": 1706100244952000000,
"attributes": [
{
"key": "http.method",
"value": {
"stringValue": "GET"
}
},
{
"key": "http.url",
"value": {
"stringValue": "http://example.com/api"
}
}
],
"links": [
{
"traceId": "1e223ff1f80f1c69f8f0b81c1a2d32ae",
"spanId": "9a7b3e4f1dceaa56",
"attributes": [
{
"key": "link-type",
"value": {
"stringValue": "related"
}
}
],
"droppedAttributesCount": 0
}
]
}
]
}
]
}
]
}