$echo '{
< "telemetry": {
< "resourceSpans": [
< {
< "resource": {
< "attributes": [
< {
< "key": "service.name",
< "value": {
< "stringValue": "checkout"
< }
< },
< {
< "key": "deployment.environment",
< "value": {
< "stringValue": "production"
< }
< },
< {
< "key": "telemetry.sdk.language",
< "value": {
< "stringValue": "java"
< }
< }
< ]
< },
< "scopeSpans": [
< {
< "scope": {
< "name": "io.opentelemetry.tomcat-10.0"
< },
< "spans": [
< {
< "traceId": "5b8efff798038103d269b633813fc60c",
< "spanId": "eee19b7ec3c1b174",
< "name": "GET /orders/12345",
< "kind": 2,
< "startTimeUnixNano": "1760000000000000000",
< "endTimeUnixNano": "1760000000012000000",
< "attributes": [
< {
< "key": "http.method",
< "value": {
< "stringValue": "get"
< }
< },
< {
< "key": "http.status_code",
< "value": {
< "stringValue": "503"
< }
< },
< {
< "key": "http.target",
< "value": {
< "stringValue": "/orders/12345?coupon=SPRING"
< }
< },
< {
< "key": "http.scheme",
< "value": {
< "stringValue": "https"
< }
< },
< {
< "key": "http.route",
< "value": {
< "stringValue": "/orders/{id}"
< }
< }
< ],
< "status": {}
< },
< {
< "traceId": "5b8efff798038103d269b633813fc60c",
< "spanId": "aab19b7ec3c1b175",
< "parentSpanId": "eee19b7ec3c1b174",
< "name": "SELECT orders",
< "kind": 3,
< "startTimeUnixNano": "1760000000001000000",
< "endTimeUnixNano": "1760000000009000000",
< "attributes": [
< {
< "key": "db.system",
< "value": {
< "stringValue": "postgresql"
< }
< },
< {
< "key": "db.statement",
< "value": {
< "stringValue": "SELECT * FROM orders WHERE id = $1"
< }
< },
< {
< "key": "db.name",
< "value": {
< "stringValue": "shop"
< }
< }
< ]
< }
< ]
< }
< ]
< }
< ],
< "resourceMetrics": [
< {
< "resource": {
< "attributes": [
< {
< "key": "service.name",
< "value": {
< "stringValue": "checkout"
< }
< }
< ]
< },
< "scopeMetrics": [
< {
< "scope": {
< "name": "io.opentelemetry.tomcat-10.0"
< },
< "metrics": [
< {
< "name": "http.server.request.duration",
< "unit": "ms",
< "histogram": {
< "aggregationTemporality": 2,
< "dataPoints": [
< {
< "attributes": [
< {
< "key": "http.request.method",
< "value": {
< "stringValue": "GET"
< }
< },
< {
< "key": "url.scheme",
< "value": {
< "stringValue": "https"
< }
< },
< {
< "key": "url.full",
< "value": {
< "stringValue": "https://shop.example.com/orders/12345"
< }
< }
< ],
< "count": "1",
< "sum": 12,
< "bucketCounts": [
< "0",
< "1"
< ],
< "explicitBounds": [
< 10
< ]
< }
< ]
< }
< }
< ]
< }
< ]
< }
< ]
< }
<}' |
<apify call michiganpublictech/otel-semconv-validator --silent --output-dataset