Merge 5a991b5634 into sapling-pr-archive-ehhuang

This commit is contained in:
ehhuang 2025-10-16 11:29:11 -07:00 committed by GitHub
commit cdeb41f438
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,6 +177,18 @@ class DistributionSpec(BaseModel):
class TelemetryConfig(BaseModel):
"""
Configuration for telemetry.
Llama Stack uses OpenTelemetry for telemetry. Please refer to https://opentelemetry.io/docs/languages/sdk-configuration/
for env variables to configure the OpenTelemetry SDK.
Example:
```bash
OTEL_SERVICE_NAME=llama-stack OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 uv run llama stack run starter
```
"""
enabled: bool = Field(default=False, description="enable or disable telemetry")