Where does the engine receive data?
| Port | Protocol | Accepts |
|---|---|---|
4317 | OTLP over gRPC | Traces, metrics, logs |
4318 | OTLP over HTTP | /v1/traces, /v1/metrics, /v1/logs; protobuf or JSON; gzip |
If your collector or observability tool already holds 4317/4318 on the same machine, move the engine with run.otlp_grpc_port and run.otlp_http_port, for example to 14317/14318.
The ports listen on 127.0.0.1 by default. To receive from other machines or containers, start the engine with --listen 0.0.0.0 (run.listen) and restrict who can reach it: a network policy, or an ingest token that every collector must send (--ingest-token-file, or the TOMOSU_INGEST_TOKEN variable). Only OTLP goes into the engine; your OpenTelemetry Collector converts anything else, such as log files or Fluent Bit.
How do I send a copy from my collector?
Add the engine as a second exporter next to your current backend, with these safe settings: a small bounded queue, short retries and a short timeout. A stopped or overloaded engine can then never back up your pipeline.
exporters:
otlp/tomosu:
endpoint: tomosu:4317
tls: { insecure: true }
compression: gzip
timeout: 2s
sending_queue: { enabled: true, num_consumers: 2, queue_size: 100 }
retry_on_failure: { enabled: true, initial_interval: 1s, max_interval: 2s, max_elapsed_time: 5s }
service:
pipelines:
traces: { receivers: [otlp], processors: [batch], exporters: [your-backend, otlp/tomosu] }
metrics: { receivers: [otlp], processors: [batch], exporters: [your-backend, otlp/tomosu] }
logs: { receivers: [otlp], processors: [batch], exporters: [your-backend, otlp/tomosu] }
This is the block Setup health shows, with your engine’s address filled in. With an ingest token it adds headers: { authorization: "Bearer ${env:TOMOSU_INGEST_TOKEN}" }. Recent Collector releases call the otlp exporter otlp_grpc; otlp/tomosu still works as a deprecated alias.
The engine sees data from the moment the exporter is added; it cannot read history already stored in your backend. Using SigNoz, Grafana, Jaeger, Uptrace, ClickStack, OpenObserve, Dash0, Last9, SkyWalking, Coroot or Logfire? Use Tomosu with your observability tool says which config to edit for each.
Without a collector, point an SDK straight at the engine: OTEL_EXPORTER_OTLP_ENDPOINT=http://tomosu:4318.
Which attributes does it need?
| Attribute | Why |
|---|---|
service.name | Names the service. Required. |
service.version | Matches the running code to the code index of that commit. Without it, links are less confident and say why. |
deployment.environment.name, k8s.cluster.name | Keeps two services with the same name in staging and production apart. |
| Trace ids in logs | Lets a log message join the request it came from. |
Traces alone are enough to produce findings; metrics and logs raise confidence.
What happens under heavy load?
The engine answers every request at once and queues it. As its queue fills it moves from normal to reduced (keeps 1 in 4 ordinary traces) to protective (keeps only errors, slow spans and warnings), and every drop is counted. Errors and slow spans are dropped last. The collector never retries or waits because of the engine.
What it keeps is redacted on the way in: URLs lose their query strings, SQL loses its literal values, and log and exception messages become templates (payment failed for <email> after <num> attempts). Raw log lines, payloads, headers, user ids and model prompts are never stored.
Can I pause what the engine takes in?
Yes. tomosu ingest pause, or run.ingest set to paused in the OpenTelemetry section of Settings, makes the engine drop data as it arrives, for a maintenance window or a noisy environment. It applies within seconds, with no restart. Your collector still gets an immediate answer, so its queue never fills; what was dropped is counted on Setup health. tomosu ingest resume takes data in again.
$ tomosu ingest status --engine http://localhost:7600
Taking in OpenTelemetry data: on
To send the engine less data rather than none, sample or filter in your collector. To control what the engine spends on a model, set when Tomosu Agent works and its daily budget instead: taking data in costs nothing.
How do I check that data is arriving?
$ tomosu health --engine http://localhost:7600
✓ Rules loaded rules dev/dev-d4ba7cc
✓ Code indexes 2 loaded, 0 unreadable
✓ Telemetry arriving 0s ago
✓ Load mode normal, 0 dropped
! Code index delivery reading the index folder only
fix: optional: set --index-source or TOMOSU_INDEX_STORE to pull indexes from your bucket
! GitHub not connected: no sign-in with GitHub, private branch scans or fix pull requests
fix: Connect → Sign in with GitHub, and choose an organisation or your personal account
✓ Tomosu Agent on: openai-compatible practice
✓ Runtime fixes from Tomosu Agent on for 2 repositories
✓ Pre-Merge scans no branch scanned yet
✓ Your rules 0 custom, 0 proposed from accepted Tomosu Agent findings (all start in shadow)
✓ Sign-in GitHub not connected · 0 access key(s) · start-up key fixed
✓ Contributions proposed as pull requests to tomosuai/tomosu from the contributor's own GitHub account, or saved as files
✓ Operations log recording (dashboard on)
Each line is a check; a line starting ! has the exact fix under it.
Setup health shows the same checks, then Production: OpenTelemetry: whether data is arriving, the addresses to send to, and step-by-step instructions that match how the engine runs (on a computer, in Docker or in Kubernetes).

Then give the engine a code index for each service (Code indexes), so it can link what arrives to your functions.