Skip to content

Monitoring glossary

What is OTLP?

OTLP is the OpenTelemetry Protocol: the standard way to send traces, metrics and logs from an SDK or Collector to a backend.

3 min read8 sectionsUpdated

On this page

Key points

  • OTLP has two transports: gRPC (default port 4317) and HTTP (default port 4318).
  • Payloads are protobuf or JSON; HTTP supports both.
  • Signals have their own paths: /v1/traces, /v1/metrics and /v1/logs.
  • Standard environment variables configure the exporter in every language.

What OTLP is

Before OpenTelemetry, every vendor had its own agent and wire format, so changing tools meant re-instrumenting. OTLP is the vendor-neutral protocol that ends that: any OpenTelemetry SDK can send to any backend that speaks OTLP, directly or through a Collector.

VariantTransportEncodingDefault portTypical path
OTLP/gRPCHTTP/2 gRPCprotobuf4317n/a (gRPC service)
OTLP/HTTP protobufHTTP/1.1 or 2protobuf4318/v1/traces, /v1/metrics, /v1/logs
OTLP/HTTP JSONHTTP/1.1 or 2JSON4318/v1/traces, /v1/metrics, /v1/logs

Configuring an exporter

The standard variables work across languages. OTEL_EXPORTER_OTLP_ENDPOINT sets a base URL and the SDK appends /v1/traces and so on; the per-signal variables take the full URL instead.

bash
# base endpoint for all signals
OTEL_EXPORTER_OTLP_ENDPOINT=https://collector.internal:4318
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf

# or a full URL per signal
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://otlp.example.com/v1/traces
OTEL_EXPORTER_OTLP_TRACES_HEADERS=x-api-key=YOUR_KEY

OTLP and VitalRix

VitalRix accepts OTLP over HTTP with protobuf or JSON for traces, metrics and logs, authenticated with an API key in the x-api-key header. Every OpenTelemetry SDK can export directly with OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf and the per-signal endpoints; the VitalRix packages for Node.js, Python, Go, Ruby and PHP set this up for you. SDKs that export gRPC send to an OpenTelemetry Collector, which forwards over HTTP:

collector.yamlyaml
receivers:
  otlp:
    protocols:
      grpc: { endpoint: 0.0.0.0:4317 }
      http: { endpoint: 0.0.0.0:4318 }
exporters:
  otlphttp/vitalrix:
    traces_endpoint: ${env:VITALRIX_API}/api/v1/traces/otlp/v1/traces
    metrics_endpoint: ${env:VITALRIX_API}/api/v1/metrics/otlp/v1/metrics
    headers:
      x-api-key: ${env:VITALRIX_KEY}
service:
  pipelines:
    traces: { receivers: [otlp], exporters: [otlphttp/vitalrix] }
    metrics: { receivers: [otlp], exporters: [otlphttp/vitalrix] }

Troubleshooting OTLP exports

  • 401 or 403: the API key header is missing or the key lacks write permission for that signal.
  • 404: wrong path, often a base endpoint combined with a full path, giving /v1/traces/v1/traces.
  • 415 Unsupported Media Type: an encoding the endpoint does not take (for VitalRix, gRPC); set the protocol to http/protobuf or route through a Collector.
  • Nothing arrives, no error: the SDK batches and exports in the background; make sure the process does not exit before the exporter flushes, and check the SDK's debug logging.

Frequently asked questions

Should I use gRPC or HTTP?

HTTP is easier through proxies, load balancers and firewalls, and works from browsers. gRPC can be slightly more efficient. Inside a cluster either works; to a SaaS backend HTTP is the common choice.

Is OTLP JSON slower than protobuf?

JSON payloads are larger and a little slower to encode, but for typical batch sizes the difference rarely matters. Compression narrows the gap.

Do I need a Collector to use OTLP?

No. SDKs can export directly. A Collector helps when you need protocol conversion, tail sampling, filtering or sending to more than one backend.

  • OpenTelemetry Collector troubleshooting guide: Troubleshoot the OpenTelemetry Collector: dropped data, exporter errors, memory limits and missing spans, using zpages, internal metrics and the debug exporter.
  • OpenTelemetry backends compared: Where to send OpenTelemetry data in 2026: open-source and commercial backends compared on OTLP support, views, cost and hosting, with criteria for choosing one.
  • What is a span in tracing?: What a span is in distributed tracing: its fields, parent and child spans, span kinds, attributes and status, with an annotated example you can read.
  • ECS and Fargate monitoring: Monitor Amazon ECS and Fargate: CPU and memory per service, stopped-task reasons, ALB target health, logs and traces.
  • How to monitor a Next.js app: How to monitor a Next.js app in production: uptime checks, Core Web Vitals, server and edge errors, OpenTelemetry traces for SSR and API routes, and alerts.
  • OpenTelemetry for FastAPI: Trace a FastAPI service with OpenTelemetry: instrument the app, async database drivers and httpx, run uvicorn workers correctly and export.

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.