Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions mellea/telemetry/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@
unit="s"
)
latency_histogram.record(1.5, {"backend": "ollama"})

Consumption boundary:
This is a public API for external consumers. Code outside
`mellea/telemetry/` records metrics via hook plugins (`metrics_plugins.py`),
not by calling these functions. No exceptions.
"""

import asyncio
Expand Down
6 changes: 6 additions & 0 deletions mellea/telemetry/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
- `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`: Trace-specific OTLP endpoint (optional).
- `OTEL_EXPORTER_OTLP_ENDPOINT`: General OTLP endpoint (fallback).
- `OTEL_SERVICE_NAME`: Service name for traces (default: `mellea`).

Consumption boundary:
This is a public API for external consumers. Code outside
`mellea/telemetry/` opens spans via hook plugins (`tracing_plugins.py`), not
by calling these functions. Exceptions are limited to spans opened from sync
code, and are documented at their call site.
"""

from __future__ import annotations
Expand Down
12 changes: 1 addition & 11 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading