{
  "resourceSpans": [
    {
      "resource": {
        "attributes": [
          {
            "key": "service.name",
            "value": {
              "stringValue": "checkout-api"
            }
          },
          {
            "key": "service.namespace",
            "value": {
              "stringValue": "shop"
            }
          },
          {
            "key": "service.version",
            "value": {
              "stringValue": "1.14.2"
            }
          },
          {
            "key": "service.instance.id",
            "value": {
              "stringValue": "checkout-api-7d9f4c-2xk"
            }
          },
          {
            "key": "deployment.environment.name",
            "value": {
              "stringValue": "staging"
            }
          },
          {
            "key": "host.name",
            "value": {
              "stringValue": "node-a1"
            }
          },
          {
            "key": "host.ip",
            "value": {
              "stringValue": "192.0.2.11"
            }
          },
          {
            "key": "cloud.region",
            "value": {
              "stringValue": "eu-west-1"
            }
          },
          {
            "key": "k8s.namespace.name",
            "value": {
              "stringValue": "shop"
            }
          },
          {
            "key": "k8s.pod.name",
            "value": {
              "stringValue": "checkout-api-7d9f4c-2xk"
            }
          },
          {
            "key": "process.pid",
            "value": {
              "intValue": "4211"
            }
          },
          {
            "key": "telemetry.sdk.name",
            "value": {
              "stringValue": "opentelemetry"
            }
          },
          {
            "key": "telemetry.sdk.language",
            "value": {
              "stringValue": "java"
            }
          },
          {
            "key": "telemetry.sdk.version",
            "value": {
              "stringValue": "1.34.0"
            }
          }
        ]
      },
      "scopeSpans": [
        {
          "scope": {
            "name": "com.example.shop.checkout",
            "version": "1.14.2"
          },
          "spans": [
            {
              "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
              "spanId": "00f067aa0ba902b7",
              "parentSpanId": "",
              "name": "POST /api/checkout",
              "kind": 2,
              "startTimeUnixNano": "1773738872850000000",
              "endTimeUnixNano": "1773738872998200000",
              "attributes": [
                {
                  "key": "http.request.method",
                  "value": {
                    "stringValue": "POST"
                  }
                },
                {
                  "key": "url.path",
                  "value": {
                    "stringValue": "/api/checkout"
                  }
                },
                {
                  "key": "url.scheme",
                  "value": {
                    "stringValue": "https"
                  }
                },
                {
                  "key": "http.response.status_code",
                  "value": {
                    "intValue": "201"
                  }
                },
                {
                  "key": "http.route",
                  "value": {
                    "stringValue": "/api/checkout"
                  }
                },
                {
                  "key": "server.address",
                  "value": {
                    "stringValue": "shop.example.com"
                  }
                },
                {
                  "key": "client.address",
                  "value": {
                    "stringValue": "203.0.113.42"
                  }
                },
                {
                  "key": "user_agent.original",
                  "value": {
                    "stringValue": "shop-mobile/4.2.0 (iOS 18.3)"
                  }
                },
                {
                  "key": "enduser.id",
                  "value": {
                    "stringValue": "cust-000418"
                  }
                },
                {
                  "key": "shop.order.id",
                  "value": {
                    "stringValue": "ord-2026-0317-004182"
                  }
                },
                {
                  "key": "shop.cart.items",
                  "value": {
                    "intValue": "3"
                  }
                },
                {
                  "key": "shop.order.total_minor",
                  "value": {
                    "intValue": "8497"
                  }
                },
                {
                  "key": "shop.currency",
                  "value": {
                    "stringValue": "EUR"
                  }
                }
              ],
              "events": [
                {
                  "timeUnixNano": "1773738872851200000",
                  "name": "request.body.parsed",
                  "attributes": [
                    {
                      "key": "body.size_bytes",
                      "value": {
                        "intValue": "612"
                      }
                    }
                  ]
                }
              ],
              "status": {}
            },
            {
              "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
              "spanId": "1a2b3c4d5e6f7081",
              "parentSpanId": "00f067aa0ba902b7",
              "name": "auth.verify_token",
              "kind": 1,
              "startTimeUnixNano": "1773738872850900000",
              "endTimeUnixNano": "1773738872855000000",
              "attributes": [
                {
                  "key": "auth.mechanism",
                  "value": {
                    "stringValue": "jwt"
                  }
                },
                {
                  "key": "auth.token.kid",
                  "value": {
                    "stringValue": "k-2026-03"
                  }
                },
                {
                  "key": "auth.cache.hit",
                  "value": {
                    "boolValue": true
                  }
                }
              ],
              "status": {}
            },
            {
              "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
              "spanId": "2b3c4d5e6f708192",
              "parentSpanId": "00f067aa0ba902b7",
              "name": "GET /cart/{cartId}",
              "kind": 3,
              "startTimeUnixNano": "1773738872855600000",
              "endTimeUnixNano": "1773738872877000000",
              "attributes": [
                {
                  "key": "http.request.method",
                  "value": {
                    "stringValue": "GET"
                  }
                },
                {
                  "key": "server.address",
                  "value": {
                    "stringValue": "cart-api.shop.svc"
                  }
                },
                {
                  "key": "server.port",
                  "value": {
                    "intValue": "8080"
                  }
                },
                {
                  "key": "http.response.status_code",
                  "value": {
                    "intValue": "200"
                  }
                },
                {
                  "key": "network.protocol.version",
                  "value": {
                    "stringValue": "1.1"
                  }
                }
              ],
              "status": {}
            },
            {
              "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
              "spanId": "5e6f708192a3b4c5",
              "parentSpanId": "00f067aa0ba902b7",
              "name": "POST /inventory/reserve",
              "kind": 3,
              "startTimeUnixNano": "1773738872878000000",
              "endTimeUnixNano": "1773738872917500000",
              "attributes": [
                {
                  "key": "http.request.method",
                  "value": {
                    "stringValue": "POST"
                  }
                },
                {
                  "key": "server.address",
                  "value": {
                    "stringValue": "inventory-api.shop.svc"
                  }
                },
                {
                  "key": "http.response.status_code",
                  "value": {
                    "intValue": "200"
                  }
                },
                {
                  "key": "http.request.body.size",
                  "value": {
                    "intValue": "214"
                  }
                }
              ],
              "status": {}
            }
          ]
        }
      ]
    },
    {
      "resource": {
        "attributes": [
          {
            "key": "service.name",
            "value": {
              "stringValue": "cart-api"
            }
          },
          {
            "key": "service.namespace",
            "value": {
              "stringValue": "shop"
            }
          },
          {
            "key": "service.version",
            "value": {
              "stringValue": "0.9.7"
            }
          },
          {
            "key": "service.instance.id",
            "value": {
              "stringValue": "cart-api-58bd21-9qh"
            }
          },
          {
            "key": "deployment.environment.name",
            "value": {
              "stringValue": "staging"
            }
          },
          {
            "key": "host.name",
            "value": {
              "stringValue": "node-a2"
            }
          },
          {
            "key": "host.ip",
            "value": {
              "stringValue": "192.0.2.12"
            }
          },
          {
            "key": "cloud.region",
            "value": {
              "stringValue": "eu-west-1"
            }
          },
          {
            "key": "k8s.namespace.name",
            "value": {
              "stringValue": "shop"
            }
          },
          {
            "key": "k8s.pod.name",
            "value": {
              "stringValue": "cart-api-58bd21-9qh"
            }
          },
          {
            "key": "process.pid",
            "value": {
              "intValue": "1180"
            }
          },
          {
            "key": "telemetry.sdk.name",
            "value": {
              "stringValue": "opentelemetry"
            }
          },
          {
            "key": "telemetry.sdk.language",
            "value": {
              "stringValue": "go"
            }
          },
          {
            "key": "telemetry.sdk.version",
            "value": {
              "stringValue": "1.34.0"
            }
          }
        ]
      },
      "scopeSpans": [
        {
          "scope": {
            "name": "github.com/example/shop/cart",
            "version": "0.9.7"
          },
          "spans": [
            {
              "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
              "spanId": "3c4d5e6f708192a3",
              "parentSpanId": "2b3c4d5e6f708192",
              "name": "GET /cart/{cartId}",
              "kind": 2,
              "startTimeUnixNano": "1773738872844200000",
              "endTimeUnixNano": "1773738872864300000",
              "attributes": [
                {
                  "key": "http.request.method",
                  "value": {
                    "stringValue": "GET"
                  }
                },
                {
                  "key": "http.route",
                  "value": {
                    "stringValue": "/cart/{cartId}"
                  }
                },
                {
                  "key": "http.response.status_code",
                  "value": {
                    "intValue": "200"
                  }
                },
                {
                  "key": "shop.cart.id",
                  "value": {
                    "stringValue": "cart-9f31a7"
                  }
                }
              ],
              "status": {}
            },
            {
              "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
              "spanId": "4d5e6f708192a3b4",
              "parentSpanId": "3c4d5e6f708192a3",
              "name": "SELECT shop.carts",
              "kind": 3,
              "startTimeUnixNano": "1773738872845300000",
              "endTimeUnixNano": "1773738872863100000",
              "attributes": [
                {
                  "key": "db.system.name",
                  "value": {
                    "stringValue": "postgresql"
                  }
                },
                {
                  "key": "db.namespace",
                  "value": {
                    "stringValue": "shop"
                  }
                },
                {
                  "key": "db.collection.name",
                  "value": {
                    "stringValue": "carts"
                  }
                },
                {
                  "key": "db.operation.name",
                  "value": {
                    "stringValue": "SELECT"
                  }
                },
                {
                  "key": "db.query.text",
                  "value": {
                    "stringValue": "SELECT id, customer_id, currency\n  FROM shop.carts\n WHERE id = $1\n   AND deleted_at IS NULL"
                  }
                },
                {
                  "key": "db.response.returned_rows",
                  "value": {
                    "intValue": "1"
                  }
                },
                {
                  "key": "server.address",
                  "value": {
                    "stringValue": "pg-primary.shop.svc"
                  }
                }
              ],
              "status": {}
            }
          ]
        }
      ]
    }
  ]
}
