Skip to content

Blackspool Documentation ​

Blackspool is OTLP-first observability for AI agent fleets: trace every run with standard OpenTelemetry, automatically filter routine healthy noise while keeping 100% of errors, loops, timeouts, and cost spikes, and inspect nested waterfalls with per-run tokens, cost, and latency.

1. Configure OpenTelemetry environment variables ​

Create a workspace in Blackspool to get your ingest URL and bearer token, then export two standard OpenTelemetry variables in your agent process:

sh
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="https://ingest.blackspool.dev/v1/traces"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <your-api-key>"
export OTEL_EXPORTER_OTLP_PROTOCOL="http/json"

Both http/json and http/protobuf are supported, including Content-Encoding: gzip. No proprietary SDK is required.

2. Send a test trace with cURL ​

sh
curl -X POST "$OTEL_EXPORTER_OTLP_TRACES_ENDPOINT" \
  -H "Authorization: Bearer <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "resourceSpans": [{
      "resource": {
        "attributes": [
          { "key": "service.name", "value": { "stringValue": "support-agent" } },
          { "key": "deployment.environment.name", "value": { "stringValue": "production" } }
        ]
      },
      "scopeSpans": [{
        "spans": [{
          "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
          "spanId": "00f067aa0ba902b7",
          "name": "llm.respond",
          "startTimeUnixNano": "1764420000000000000",
          "endTimeUnixNano": "1764420001200000000",
          "attributes": [
            { "key": "gen_ai.request.model", "value": { "stringValue": "gpt-4o-mini" } },
            { "key": "gen_ai.usage.input_tokens", "value": { "intValue": "1200" } },
            { "key": "gen_ai.usage.output_tokens", "value": { "intValue": "320" } }
          ]
        }]
      }]
    }]
  }'

Your trace appears immediately in the workspace dashboard with full span waterfall, token usage, and estimated cost.

Next steps ​

© Blackspool. All rights reserved.