Skip to content

OpenTelemetry

Install

Terminal window
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:

AttributeDescription
briefcase.decision.idSnapshot ID
briefcase.model.nameModel name
briefcase.tokens.inputInput token count
briefcase.tokens.outputOutput token count
briefcase.latency_msExecution latency

Configuration

OptionDefaultDescription
endpoint"http://localhost:4317"OTel collector endpoint
protocol"grpc"Export protocol (grpc or http)