OpenTelemetry integration
Instead of logdino polling a provider, your app or OpenTelemetry Collector pushes logs to logdino over OTLP/HTTP. Trace and span ids on the records are kept, so an error’s trace is exact.
Add the source
- In the dashboard, open Log sources → OpenTelemetry and add a source.
- Copy the endpoint and the ingest token it shows. The token is shown only once; if it is lost, rotate it from the source.
If the app already uses the OpenTelemetry SDK
Set these standard environment variables on the service and restart it. Every OpenTelemetry SDK reads them, so no code change or Collector is needed:
OTEL_LOGS_EXPORTER=otlp OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=http/protobuf OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=<URL> OTEL_EXPORTER_OTLP_LOGS_HEADERS=Authorization=Bearer%20<TOKEN>
The space after Bearer is written %20, because the SDKs read header values URL-encoded. logdino receives OTLP over HTTP only, which is why the protocol is set.
Or point a Collector at logdino
Add an otlphttp exporter with the endpoint as logs_endpoint and the token as a bearer header, and add it to your logs pipeline:
exporters:
otlphttp/logdino:
logs_endpoint: <URL>
headers:
Authorization: "Bearer <TOKEN>"
processors:
batch:
send_batch_max_size: 1000
service:
pipelines:
logs:
receivers: [otlp]
processors: [batch]
exporters: [otlphttp/logdino]
Choosing services
An integration on an OpenTelemetry source receives every service.name by default. Set the integration’s service name, when creating it, to receive only that service’s records.