{
"resourceSpans": [{
"resource": {
"attributes": [
{
"key": "service.name",
"value": { "stringValue": "payment-api" }
},
{
"key": "service.version",
"value": { "stringValue": "1.0.0" }
}
]
},
"scopeSpans": [{
"scope": {
"name": "payment-service"
},
"spans": [
{
"traceId": "5c1b6c9f9c3e1b3d8f7e5a3b2d4c6e8a",
"spanId": "7b4a9c1e5d3f2b6a",
"name": "process_payment",
"kind": 2,
"startTimeUnixNano": "1704067200000000000",
"endTimeUnixNano": "1704067200045000000",
"attributes": [
{
"key": "code.function.name",
"value": { "stringValue": "process_payment" }
},
{
"key": "code.file.path",
"value": { "stringValue": "src/api/handlers.rs" }
},
{
"key": "code.line.number",
"value": { "intValue": "42" }
},
{
"key": "payment.amount",
"value": { "doubleValue": 99.99 }
}
],
"status": {
"code": 1
}
},
{
"traceId": "6d2c7d0a0d4f2c4e9a8f6b4c3e5d7f9b",
"spanId": "8c5b0d2f6e4a3c7b",
"name": "process_payment",
"kind": 2,
"startTimeUnixNano": "1704067201000000000",
"endTimeUnixNano": "1704067201120000000",
"attributes": [
{
"key": "code.function.name",
"value": { "stringValue": "process_payment" }
},
{
"key": "code.file.path",
"value": { "stringValue": "src/api/handlers.rs" }
},
{
"key": "code.line.number",
"value": { "intValue": "42" }
},
{
"key": "payment.amount",
"value": { "doubleValue": 1299.99 }
}
],
"status": {
"code": 2,
"message": "Payment gateway timeout"
}
},
{
"traceId": "7e3d8e1b1e5a3d5f0b9a7c5d4f6e8a0c",
"spanId": "9d6c1e3a7f5b4d8c",
"name": "calculate_tax",
"kind": 2,
"startTimeUnixNano": "1704067202000000000",
"endTimeUnixNano": "1704067202002000000",
"attributes": [
{
"key": "code.function.name",
"value": { "stringValue": "calculate_tax" }
},
{
"key": "code.file.path",
"value": { "stringValue": "src/api/tax.rs" }
},
{
"key": "code.line.number",
"value": { "intValue": "15" }
}
],
"status": {
"code": 1
}
},
{
"traceId": "8f4e9f2c2f6b4e6a1c0b8d6e5a7d9b1d",
"spanId": "0e7d2f4b8a6c5e9d",
"name": "validate_credit_card",
"kind": 2,
"startTimeUnixNano": "1704067203000000000",
"endTimeUnixNano": "1704067203005000000",
"attributes": [
{
"key": "code.function.name",
"value": { "stringValue": "validate_credit_card" }
},
{
"key": "code.file.path",
"value": { "stringValue": "src/api/validation.rs" }
}
],
"status": {
"code": 1
}
},
{
"traceId": "9a5f0a3d3a7c5f7b2d1c9e7f6b8e0b2e",
"spanId": "1f8e3a5c9b7d6a0e",
"name": "database_query",
"kind": 3,
"startTimeUnixNano": "1704067204000000000",
"endTimeUnixNano": "1704067204025000000",
"attributes": [
{
"key": "db.system",
"value": { "stringValue": "postgresql" }
},
{
"key": "db.statement",
"value": { "stringValue": "SELECT * FROM orders WHERE id = $1" }
}
],
"status": {
"code": 1
}
}
]
}]
}]
}