Product
Platform overview Tomosu engine (open source) Tomosu Cloud Reliability rules
Solutions
Prevent outages before merge Reliability Radar Fix safety For developers For SRE and platform teams
Developers
Quickstart Documentation Contribute a rule
Resources
Blog Case studies Learn FAQ News
Company
Pricing About Contact Join the Waitlist
Theme

Use Tomosu with Pydantic Logfire

The Logfire SDK can send to Logfire and to Tomosu at once, with no Collector. Set OTEL_EXPORTER_OTLP_ENDPOINT to Tomosu’s HTTP port and leave send_to_logfire on. If you already run a Collector that sends to Logfire, add Tomosu’s exporter there instead.

  • No Collector needed
  • OTEL_EXPORTER_OTLP_ENDPOINT
  • Python
  • Updated

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.

Your appsInstrumented with LogfireLogfire SDK or a CollectorSends to Logfire and to TomosuLogfireShows what is slowTomosuFinds the line of codeChart recovers in LogfireProof the fix workedFix pull requestAfter you press Accept
Logfire and Tomosu, from the same data.

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_EXPORTER or OTEL_METRICS_EXPORTER is set to anything other than otlp, 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.