diff --git a/docs/docs/distributions/self_hosted_distro/starter.md b/docs/docs/distributions/self_hosted_distro/starter.md index be303dbc2..a8faf713a 100644 --- a/docs/docs/distributions/self_hosted_distro/starter.md +++ b/docs/docs/distributions/self_hosted_distro/starter.md @@ -119,7 +119,7 @@ The following environment variables can be configured: ### Telemetry Configuration - `OTEL_SERVICE_NAME`: OpenTelemetry service name -- `TELEMETRY_SINKS`: Telemetry sinks (default: `console,sqlite`) +- `TELEMETRY_SINKS`: Telemetry sinks (default: `[]`) ## Enabling Providers diff --git a/llama_stack/core/library_client.py b/llama_stack/core/library_client.py index 4d33576ba..3dd52344d 100644 --- a/llama_stack/core/library_client.py +++ b/llama_stack/core/library_client.py @@ -207,8 +207,9 @@ class AsyncLlamaStackAsLibraryClient(AsyncLlamaStackClient): super().__init__() # when using the library client, we should not log to console since many # of our logs are intended for server-side usage - current_sinks = os.environ.get("TELEMETRY_SINKS", "sqlite").split(",") - os.environ["TELEMETRY_SINKS"] = ",".join(sink for sink in current_sinks if sink != "console") + if sinks_from_env := os.environ.get("TELEMETRY_SINKS", None): + current_sinks = sinks_from_env.split(",") + os.environ["TELEMETRY_SINKS"] = ",".join(sink for sink in current_sinks if sink != "console") if in_notebook(): import nest_asyncio @@ -253,6 +254,7 @@ class AsyncLlamaStackAsLibraryClient(AsyncLlamaStackClient): try: self.route_impls = None + breakpoint() stack = Stack(self.config, self.custom_provider_registry) await stack.initialize()