Install
pip install briefcase-ai[otel]
Quick Example
from briefcase.otel import BriefcaseExporter
exporter = BriefcaseExporter()
exporter.configure(endpoint="http://localhost:4317")
Key Classes
BriefcaseExporter — OTel-compatible span and metric exporter
Semantic Conventions
Briefcase AI uses OTel semantic conventions for AI/ML workloads:
| Attribute | Description |
|---|
briefcase.decision.id | Snapshot ID |
briefcase.model.name | Model name |
briefcase.tokens.input | Input token count |
briefcase.tokens.output | Output token count |
briefcase.latency_ms | Execution latency |
Configuration
| Option | Default | Description |
|---|
endpoint | "http://localhost:4317" | OTel collector endpoint |
protocol | "grpc" | Export protocol (grpc or http) |