feat(llm-routing): telemetry and audit for routing expressions
Open
@along-2017 is already working on this.
Since Sep 3, 2026.
- Dominant language
- Go
- Stars
- 218
- Forks
- 72
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 427
Description
Description
Part of #536 (per-model routing configuration).
Audit and observe routing expressions. After the router successfully parses an
expression, emit the full canonical form in structured logs and traces so every
request's effective routing configuration is auditable. Keep metric labels
bounded to method, outcome, and cache result; expression content and parameter
values must never become metric labels.
Definition of Done
- Accepted expressions appear in canonical form in structured logs and
traces - Rejections log the reason with the existing structured fields
- Metric label sets are bounded to method, outcome, and cache result
- Tests cover audit events and label boundedness
Resources
- Parent: #536
- Blocked by: router expression parsing and overlay
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.