use postgres to store traces and query

This commit is contained in:
Dinesh Yeduguru 2024-12-02 09:39:56 -08:00
parent 4dd08e5595
commit cb49d21a49
5 changed files with 235 additions and 9 deletions

View file

@ -18,10 +18,18 @@ class OpenTelemetryConfig(BaseModel):
default="llama-stack",
description="The service name to use for telemetry",
)
trace_store: str = Field(
default="postgres",
description="The trace store to use for telemetry",
)
jaeger_query_endpoint: str = Field(
default="http://localhost:16686/api/traces",
description="The Jaeger query endpoint URL",
)
postgres_conn_string: str = Field(
default="host=localhost dbname=llama_stack user=llama_stack password=llama_stack port=5432",
description="The PostgreSQL connection string to use for storing traces",
)
@classmethod
def sample_run_config(cls, **kwargs) -> Dict[str, Any]: