OpenTelemetry Collector
Route OTLP telemetry through an OpenTelemetry Collector into RawTree.
OpenTelemetry Collector example
The Collector sends data to the OpenTelemetry app in RawTree Cloud or RawTree BYOC, where enabled. RawTree stores the resulting rows.
If your application exports OTLP locally, use this config to send traces, logs, and metrics to RawTree.
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
exporters:
otlphttp/rawtree:
endpoint: https://api.rawtree.com/otlp
headers:
Authorization: Bearer ${env:RAWTREE_API_KEY}
service:
pipelines:
traces:
receivers: [otlp]
exporters: [otlphttp/rawtree]
logs:
receivers: [otlp]
exporters: [otlphttp/rawtree]
metrics:
receivers: [otlp]
exporters: [otlphttp/rawtree]Run it with your cluster API key:
export RAWTREE_API_KEY=rt_...
otelcol --config collector.yamlApplications can then export to the local Collector:
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobufBy default, the OpenTelemetry app writes traces to traces, logs to logs, and metrics to metrics.
To use custom destination tables, add a signal-specific header to the exporter headers map.
Use x-rawtree-traces-table, x-rawtree-logs-table, or x-rawtree-metrics-table.
See the OpenTelemetry guide for endpoint details and the Transforms guide for emitted row shapes.