OpenTelemetry Span Builder
Configure an OpenTelemetry span using the form and instantly generate a valid
OTLP JSON payload or
Python SDK instrumentation code.
Set span kind, status, trace IDs, custom attributes, and timed events — all in the browser.
Frequently Asked Questions
What is an OpenTelemetry span?▼
A span is the fundamental unit of work in OpenTelemetry distributed tracing. It represents a single operation — an HTTP request, a database query, a function call — with a start time, duration, status, and a set of key-value attributes. Spans are grouped into traces by sharing the same Trace ID. A trace forms a directed acyclic graph (DAG) of spans that shows the full path of a request through your system.
What is the difference between a Trace ID and a Span ID?▼
A Trace ID (128-bit / 32 hex chars) uniquely identifies an entire distributed trace — all the spans that belong to the same request journey across services share one Trace ID. A Span ID (64-bit / 16 hex chars) uniquely identifies a single span within that trace. The Parent Span ID links a child span back to its parent, forming the trace hierarchy. Root spans have no Parent Span ID.
What do the different Span Kinds mean?▼
INTERNAL: An internal operation within the same service (e.g., a helper function). SERVER: The span covers a request received by a server (e.g., an HTTP handler). CLIENT: The span covers an outgoing request to a remote service (e.g., an HTTP client call or DB query). PRODUCER: The span covers a message being sent to a queue or messaging system. CONSUMER: The span covers a message being received and processed from a queue. Span Kind affects how tracing UIs display call graphs and calculate latency attribution.
What is OTLP and why is it the standard format?▼
OTLP (OpenTelemetry Protocol) is the native wire format for OpenTelemetry data. It uses Protocol Buffers over gRPC or JSON over HTTP. OTLP is vendor-neutral and supported by all major observability backends: Jaeger, Zipkin, Datadog, Grafana Tempo, Honeycomb, New Relic, AWS X-Ray, and more. Using OTLP means you can switch backends without changing your instrumentation code — just point the exporter at a different endpoint.
What are span attributes and span events?▼
Attributes are key-value pairs attached to a span that describe the context of the operation — e.g., http.method='GET', db.system='postgresql', http.status_code=200. They use semantic conventions defined by the OpenTelemetry specification for consistency across tools. Events are timestamped log-like records attached to a span, useful for marking a specific point in time within the span's duration — e.g., 'cache.hit' or 'payment.validated'. Unlike attributes, events capture something that happened at a specific moment.
What do the span status codes mean?▼
UNSET (0): The default status. The span completed without an explicit status being set — this does not necessarily mean success. OK (1): The operation completed successfully and the developer explicitly marked it as OK. ERROR (2): The operation failed. When set to ERROR, you should also provide an error message. Most backends highlight ERROR spans in red for easy identification. Do not set OK unless you explicitly want to override the default; leave as UNSET for spans where status is not meaningful.
Related Products
on GumroadPremium Workflow Pack
Production-grade workflows, architecture guides, and deployment scripts for teams that ship. 10 advanced CI/CD workflows (blue-green, canary, E2E, security), 5 architecture deep-dives, code review checklist, PR process guide, and 5 battle-tested Bash deployment scripts.
Buy on Gumroad →GitHub Actions CI/CD Templates Pack
12 production-ready GitHub Actions workflow templates covering Node.js, Python, Docker, multi-environment deployments, security scanning, and auto-changelog. Copy, paste, ship.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →You Might Also Need
OpenTelemetry Trace Builder
Build OpenTelemetry trace spans and export configs visually. Generate Node.js SDK setup code with OTLP, Jaeger, or Zipkin exporter configuration.
Open free tool →
OpenTelemetry Config Generator
Generate OpenTelemetry Collector configuration files for traces, metrics, and logs. Supports Jaeger, Zipkin, OTLP, Prometheus, and Grafana Loki exporters with batch processing and sampling options.
Open free tool →
Highlight.io
Open-source full-stack monitoring with session replay, errors, logs, and tracing.
Open free tool →
More Free Tools
Related Articles
OpenTelemetry Observability Guide 2026: Traces, Metrics & Logs
A comprehensive guide to OpenTelemetry in 2026—covering OTel architecture, traces, metrics, logs, Node.js and Python instrumentation, Jaeger, Grafana/Prometheus integration, and production cost-control strategies for backend developers.
Building Your Observability Stack in 2026: OpenTelemetry + Grafana vs Datadog vs New Relic
A practical guide to building a modern observability stack in 2026 — comparing OpenTelemetry + Grafana OSS, Datadog, and New Relic on cost, setup complexity, features, and real-world tradeoffs.
LLM Observability Tools 2026: OpenTelemetry, Langfuse, Arize Phoenix Compared
Compare LLM observability tools for 2026: Langfuse, Arize Phoenix, Helicone, LangSmith, and OpenTelemetry for LLMs. Tracing, evals, cost tracking, and self-hosting options.
Microservices Observability with OpenTelemetry 2026: Tracing, Metrics, Logs
Complete guide to implementing observability in microservices using OpenTelemetry in 2026. Distributed tracing, metrics collection, structured logging, and production-ready setup with Jaeger, Prometheus, and Grafana.
The Modern DevOps Observability Stack: Grafana, Prometheus, Loki
Build a complete DevOps observability stack with Prometheus for metrics, Loki for logs, Tempo for traces, and Grafana dashboards—includes Docker Compose setup.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →