# `LLMProxy.Accounting.UsageTracking`
[🔗](https://github.com/elixir-vibe/llm_proxy/blob/v0.3.1/lib/llm_proxy/accounting/usage_tracking.ex#L1)

Usage accounting workflow for key counters, usage rows, optional traces, and optional content capture.

# `log_user_message`

# `maybe_record_trace`

```elixir
@spec maybe_record_trace(map(), String.t(), map(), map(), LLMProxy.Usage.t(), map()) ::
  term()
```

# `track_usage`

```elixir
@spec track_usage(map(), String.t(), LLMProxy.Usage.t(), map()) :: :ok | term()
```

---

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