Skip to content

OTLP Ingestion & Export ​

Blackspool ingests standard OpenTelemetry traces over HTTP so you can instrument LangGraph, CrewAI, PydanticAI, OpenAI Agents, Vercel AI SDK, or custom Python/TypeScript agents without vendor lock-in.

Endpoints & transport ​

  • OTLP/HTTP: POST /v1/traces
    • Content types: application/json (http/json) and application/x-protobuf (http/protobuf)
    • Compression: optional Content-Encoding: gzip
    • Authentication: Authorization: Bearer <your-api-key>
  • Structured JSON events: POST /v1/events
    • Accepts a single span object, an array of spans, or { events, trace_complete } with optional Content-Encoding: gzip.

Supported attribute conventions ​

Blackspool automatically normalizes span attributes from common AI agent libraries:

ConventionModelTokensPayloads
OpenTelemetry GenAI SemConvgen_ai.request.modelgen_ai.usage.input_tokens, gen_ai.usage.output_tokensgen_ai.prompt, gen_ai.completion
OpenInferencellm.model_namellm.token_count.prompt, llm.token_count.completioninput.value, output.value
Vercel AI SDKai.model.idai.usage.promptTokens, ai.usage.completionTokensai.prompt.messages, ai.response.text
  • Agent name: service.name on the resource (or agent.name)
  • Environment: deployment.environment.name (or deployment.environment) — supports production, staging, and unspecified
  • Explicit cost: gen_ai.cost.usd or cost_usd; when omitted, Blackspool automatically estimates USD cost for recognized OpenAI, Anthropic, and Gemini models.

Retention & anomaly filtering ​

Every run is evaluated as a complete trace before long-term retention:

  • Always retained in full: errors, timeouts, repeated tool loops, slow runs, and token spikes.
  • Routine healthy runs: automatically sampled so high-volume production fleets stay fast and cost-effective without turning tracing off.

Data export & Grafana ​

Your data is never locked in. From any workspace, you can:

  • Export Parquet (Zstd-compressed) for offline analysis in DuckDB, Pandas, or Polars
  • Export Apache Arrow IPC streams for programmatic pipelines
  • Connect Grafana via the built-in time-series endpoint for latency, token volume, and spend dashboards

© Blackspool. All rights reserved.