# `Imp.Observability`
[🔗](https://github.com/deepfates/imp/blob/v0.18.1/lib/imp/observability.ex#L1)

Public inspection, optimizer progress, and Imp-scoped logging controls.

All history inspection is redacted by default. Optimizer subscriptions use
telemetry and deliver messages without owning optimizer processes.

# `disable_logging`

Disables Imp application logging without changing host Logger configuration.

# `enable_logging`

Enables Imp application logging.

# `inspect_artifact`

Returns one normalized, redacted inspection snapshot.

Tagged tuples make otherwise ambiguous lists explicit: `{:provider, calls}`,
`{:tool, history}`, `{:rlm, trace}`, and `{:optimizer, report}`. Predictions,
conversation histories, optimizer reports, and traces are recognized directly.
Redaction is enabled by default and each payload is bounded by `:max_bytes`.

# `inspect_history`

Renders recent conversation turns or provider-call history with redaction by default.

# `log`

Emits a redacted Imp log entry when Imp-scoped logging is enabled.

# `logging_enabled?`

Returns whether Imp-scoped logging is enabled.

# `render_inspection`

Renders an inspection snapshot as stable, pretty JSON.

# `status`

Normalizes optimizer telemetry, reports, predictions, and provider states into status data.

# `subscribe_optimizer`

Subscribes the owner process to normalized optimizer progress events.

# `trace`

Collects selected redacted telemetry emitted in this function's trace context.

Owned `Imp.Tasks` children inherit correlation; unrelated processes do not.
Ordinary `Task`/`spawn` children require explicit `Imp.Telemetry.with_context(context, fun)`
propagation. Await owned children before returning. Nested traces have their
own correlation and do not contaminate their enclosing trace.

# `unsubscribe_optimizer`

Detaches an optimizer progress subscription.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
