> ## Documentation Index
> Fetch the complete documentation index at: https://docs.traceback.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenTelemetry Integration

> Send OTel traces and metrics directly to Traceback via standard OTLP endpoints.

Traceback is natively compatible with the OpenTelemetry Protocol (OTLP) over HTTP/gRPC.

## OTel Collector Configuration

Add Traceback as an OTLP exporter in your `otel-collector-config.yaml`:

```yaml otel-collector-config.yaml theme={null}
receivers:
  otlp:
    protocols:
      grpc:
      http:

exporters:
  otlphttp/traceback:
    endpoint: "https://otlp.traceback.dev"
    headers:
      Authorization: "Bearer ${TRACEBACK_API_KEY}"

service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [otlphttp/traceback]
```

***

## Native OpenTelemetry Node.js SDK

```typescript theme={null}
import { NodeSDK } from "@opentelemetry/sdk-node";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";

const sdk = new NodeSDK({
  traceExporter: new OTLPTraceExporter({
    url: "https://otlp.traceback.dev/v1/traces",
    headers: {
      Authorization: `Bearer ${process.env.TRACEBACK_API_KEY}`,
    },
  }),
});

sdk.start();
```
