$echo '{
< "telemetry": {
< "resourceSpans": [
< {
< "resource": {
< "attributes": [
< {
< "key": "service.name",
< "value": {
< "stringValue": "checkout"
< }
< },
< {
< "key": "deployment.environment.name",
< "value": {
< "stringValue": "demo"
< }
< }
< ]
< },
< "scopeSpans": [
< {
< "scope": {
< "name": "io.opentelemetry.http",
< "version": "2.9.0"
< },
< "spans": [
< {
< "traceId": "5b8efff798038103d269b633813fc60c",
< "spanId": "eee19b7ec3c1b174",
< "name": "GET /api/users/jane.doe@example.com/orders",
< "kind": 2,
< "attributes": [
< {
< "key": "http.request.method",
< "value": {
< "stringValue": "GET"
< }
< },
< {
< "key": "url.full",
< "value": {
< "stringValue": "https://shop.example.com/api/users/jane.doe@example.com/orders?api_key=demo-k3y-0f-fake-shop-9921&page=2"
< }
< },
< {
< "key": "http.request.header.authorization",
< "value": {
< "arrayValue": {
< "values": [
< {
< "stringValue": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyLTQyIiwibmFtZSI6IkphbmUgRG9lIiwiZW1haWwiOiJqYW5lLmRvZUBleGFtcGxlLmNvbSIsImlhdCI6MTcwMDAwMDAwMH0.ZGVtby1zaWduYXR1cmUtbm90LXJlYWw"
< }
< ]
< }
< }
< },
< {
< "key": "client.address",
< "value": {
< "stringValue": "203.0.113.42"
< }
< },
< {
< "key": "user.id",
< "value": {
< "stringValue": "user-42"
< }
< },
< {
< "key": "app.customer_ref",
< "value": {
< "stringValue": "CUST-00012345"
< }
< },
< {
< "key": "geo.location.lat",
< "value": {
< "doubleValue": 42.3314
< }
< },
< {
< "key": "geo.location.lon",
< "value": {
< "doubleValue": -83.0458
< }
< }
< ],
< "events": [
< {
< "name": "exception",
< "attributes": [
< {
< "key": "exception.type",
< "value": {
< "stringValue": "OperationalError"
< }
< },
< {
< "key": "exception.message",
< "value": {
< "stringValue": "could not connect to postgres://orders_app:Sup3rS3cretPw@db.internal:5432/orders"
< }
< }
< ]
< }
< ],
< "status": {
< "code": 2,
< "message": "upstream payment call failed"
< }
< },
< {
< "traceId": "5b8efff798038103d269b633813fc60c",
< "spanId": "aaa19b7ec3c1b175",
< "parentSpanId": "eee19b7ec3c1b174",
< "name": "SELECT orders",
< "kind": 3,
< "attributes": [
< {
< "key": "db.system",
< "value": {
< "stringValue": "postgresql"
< }
< },
< {
< "key": "db.query.text",
< "value": {
< "stringValue": "SELECT * FROM customers WHERE email = '\''jane.doe@example.com'\'' AND phone = '\''+1 202-555-0143'\''"
< }
< }
< ]
< }
< ]
< }
< ]
< }
< ],
< "resourceLogs": [
< {
< "resource": {
< "attributes": [
< {
< "key": "service.name",
< "value": {
< "stringValue": "payments"
< }
< },
< {
< "key": "deployment.environment.name",
< "value": {
< "stringValue": "demo"
< }
< }
< ]
< },
< "scopeLogs": [
< {
< "scope": {
< "name": "payments.logger"
< },
< "logRecords": [
< {
< "severityText": "INFO",
< "body": {
< "stringValue": "Loaded AWS credentials AKIAIOSFODNN7EXAMPLE from environment"
< },
< "attributes": [
< {
< "key": "payment.card_number",
< "value": {
< "stringValue": "4111 1111 1111 1111"
< }
< },
< {
< "key": "payment.iban",
< "value": {
< "stringValue": "GB82 WEST 1234 5698 7654 32"
< }
< }
< ]
< },
< {
< "severityText": "WARN",
< "body": {
< "kvlistValue": {
< "values": [
< {
< "key": "event",
< "value": {
< "stringValue": "patient_lookup"
< }
< },
< {
< "key": "patient",
< "value": {
< "kvlistValue": {
< "values": [
< {
< "key": "mrn",
< "value": {
< "stringValue": "MRN-00482913"
< }
< },
< {
< "key": "ssn",
< "value": {
< "stringValue": "078-05-1120"
< }
< },
< {
< "key": "dob",
< "value": {
< "stringValue": "1985-03-12"
< }
< }
< ]
< }
< }
< },
< {
< "key": "note",
< "value": {
< "stringValue": "Patient diagnosis E11.9, prescribed metformin"
< }
< }
< ]
< }
< },
< "attributes": []
< }
< ]
< }
< ]
< }
< ],
< "resourceMetrics": [
< {
< "resource": {
< "attributes": [
< {
< "key": "service.name",
< "value": {
< "stringValue": "checkout"
< }
< },
< {
< "key": "deployment.environment.name",
< "value": {
< "stringValue": "demo"
< }
< }
< ]
< },
< "scopeMetrics": [
< {
< "scope": {
< "name": "io.opentelemetry.http"
< },
< "metrics": [
< {
< "name": "http.server.request.duration",
< "unit": "s",
< "description": "Duration of HTTP server requests.",
< "histogram": {
< "aggregationTemporality": 2,
< "dataPoints": [
< {
< "count": "3",
< "sum": 0.42,
< "attributes": [
< {
< "key": "http.route",
< "value": {
< "stringValue": "/api/users/{id}/orders"
< }
< },
< {
< "key": "user.email",
< "value": {
< "stringValue": "john.smith@example.org"
< }
< }
< ]
< }
< ]
< }
< }
< ]
< }
< ]
< }
< ]
< },
< "customPatterns": [
< {
< "name": "customer-ref",
< "pattern": "CUST-[0-9]{8}",
< "severity": "medium",
< "action": "hash"
< }
< ]
<}' |
<apify call michiganpublictech/otel-pii-leak-detector --silent --output-dataset