Pydantic Logfire is built on OpenTelemetry, and most of its users are Python teams. There are two ways to give Tomosu a copy: let the Logfire SDK send to Tomosu as well, with no Collector, or add Tomosu’s exporter to a Collector that sends to Logfire.
First do the four steps every tool shares: make the engine reachable from the Collector, copy the exporter block from Setup health, set service.version on your services and build code indexes in CI.
How do I send from the Logfire SDK, with no Collector?
Set the standard OpenTelemetry endpoint variable to Tomosu’s HTTP port. The Logfire SDK then sends to that endpoint and keeps sending to Logfire, because send_to_logfire stays on unless you turn it off (Logfire: alternative backends).
OTEL_EXPORTER_OTLP_ENDPOINT=http://tomosu:4318
- The SDK sends OTLP over HTTP (protobuf), which Tomosu takes on
4318. - Traces and metrics go to the endpoint, and logs too when only this base variable is set. Per-signal variables, such as
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, send just one signal. - If
OTEL_TRACES_EXPORTERorOTEL_METRICS_EXPORTERis set to anything other thanotlp, the SDK ignores the matching endpoint. - Do not set
send_to_logfire=False, or Logfire stops receiving data.
With an ingest token on the engine, also set OTEL_EXPORTER_OTLP_HEADERS=authorization=Bearer%20<token>.
How do I add Tomosu to a Collector that sends to Logfire?
Logfire’s Collector guide sends with an otlphttp exporter to https://logfire-us.pydantic.dev (or logfire-eu) and an Authorization: Bearer write token (Logfire: Collector). Add the Tomosu block from Setup health and append it next to that exporter. This works for any language.
service:
pipelines:
traces: { exporters: [otlphttp/logfire, otlp/tomosu] }
metrics: { exporters: [otlphttp/logfire, otlp/tomosu] }
logs: { exporters: [otlphttp/logfire, otlp/tomosu] }
How do I check it works?
Data still arrives in Logfire, and Setup health shows data arriving.