# Trace operations

Send optional OpenTelemetry operation traces to a collector you control.

Source: https://miilo.tech/docs/telemetry

## Choose the boundary

Observation snapshots and operation traces answer different questions. A snapshot describes observed work. A trace records an instrumented operation and its timing. Local transcript reads are not fabricated model calls, and a tool result is not proof that an entire task succeeded.

Tracing is off by default. Use a full OTLP/HTTP protobuf traces URL. HTTPS is required except for numeric loopback addresses. Collector credentials are separate from your observation and model credentials.

## Trace one request

Replace connection/work-id with a real work identifier from your connected provider. This opt-in applies to this explanation request only. The span surrounds the API request and response decoding; downstream model identity, token usage and inference duration are not known at this boundary.

```
miilo work explain connection/work-id \
  --telemetry-endpoint http://127.0.0.1:4318/v1/traces
```

## Trace the launcher

Configure the helper separately, with explicit consent. Restart an active hands-free session after changing its tracing configuration. Disabling tracing suppresses future records; it cannot recall records already queued or delivered.

```
miilo-owl telemetry configure --consent \
  --endpoint https://collector.example/v1/traces
# Revoke the helper’s tracing consent:
miilo-owl telemetry disable
```

[Helper collector authentication and coverage](https://github.com/miilo-ai/miilo-owl-widgets/blob/v1.7.3/docs/telemetry.md)

## Inspect delivery

Check your collector for the actual operation spans. The CLI emits execute_tool request_explanation around an explanation request. A successful collector response means receiver acceptance, not a guarantee that downstream storage retained the trace.

Operation export is bounded, asynchronous and best effort. Failed export must not turn successful work into a failed task. Queue overflow or abrupt shutdown can lose telemetry, and an uncertain retry can duplicate spans.

The CLI excludes questions, explanations, work titles, provider/work/session IDs, endpoint addresses, audio, transcripts, tool payloads and raw exceptions. Timing and operation names still reveal activity. Review each component’s documented coverage before enabling export.

[CLI delivery and privacy contract](https://github.com/miilo-ai/miilo-cli/blob/v0.6.0/docs/telemetry.md)
