chore: distrogen enables telemetry by default

# What does this PR do?


## Test Plan
Telemetry provider was added to all distributions in the latest commit
but the protocol mapping was missing, causing a KeyError when the stack
tried to validate provider compliance.
This commit is contained in:
Eric Huang 2025-10-16 11:21:12 -07:00
parent f22aaef42f
commit 3679612b5f
14 changed files with 29 additions and 0 deletions

View file

@ -25,6 +25,7 @@ from llama_stack.core.datatypes import (
ModelInput,
Provider,
ShieldInput,
TelemetryConfig,
ToolGroupInput,
)
from llama_stack.core.distribution import get_provider_registry
@ -182,6 +183,7 @@ class RunConfigSettings(BaseModel):
metadata_store: dict | None = None
inference_store: dict | None = None
conversations_store: dict | None = None
telemetry: TelemetryConfig = Field(default_factory=lambda: TelemetryConfig(enabled=True))
def run_config(
self,
@ -256,6 +258,7 @@ class RunConfigSettings(BaseModel):
"server": {
"port": 8321,
},
"telemetry": self.telemetry.model_dump(exclude_none=True) if self.telemetry else None,
}