mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-04 10:10:36 +00:00
Merge 8867ca743e into sapling-pr-archive-ehhuang
This commit is contained in:
commit
283f9ce004
2 changed files with 5 additions and 3 deletions
|
|
@ -119,7 +119,7 @@ The following environment variables can be configured:
|
||||||
|
|
||||||
### Telemetry Configuration
|
### Telemetry Configuration
|
||||||
- `OTEL_SERVICE_NAME`: OpenTelemetry service name
|
- `OTEL_SERVICE_NAME`: OpenTelemetry service name
|
||||||
- `TELEMETRY_SINKS`: Telemetry sinks (default: `console,sqlite`)
|
- `TELEMETRY_SINKS`: Telemetry sinks (default: `[]`)
|
||||||
|
|
||||||
## Enabling Providers
|
## Enabling Providers
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -207,8 +207,9 @@ class AsyncLlamaStackAsLibraryClient(AsyncLlamaStackClient):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
# when using the library client, we should not log to console since many
|
# when using the library client, we should not log to console since many
|
||||||
# of our logs are intended for server-side usage
|
# of our logs are intended for server-side usage
|
||||||
current_sinks = os.environ.get("TELEMETRY_SINKS", "sqlite").split(",")
|
if sinks_from_env := os.environ.get("TELEMETRY_SINKS", None):
|
||||||
os.environ["TELEMETRY_SINKS"] = ",".join(sink for sink in current_sinks if sink != "console")
|
current_sinks = sinks_from_env.split(",")
|
||||||
|
os.environ["TELEMETRY_SINKS"] = ",".join(sink for sink in current_sinks if sink != "console")
|
||||||
|
|
||||||
if in_notebook():
|
if in_notebook():
|
||||||
import nest_asyncio
|
import nest_asyncio
|
||||||
|
|
@ -253,6 +254,7 @@ class AsyncLlamaStackAsLibraryClient(AsyncLlamaStackClient):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.route_impls = None
|
self.route_impls = None
|
||||||
|
breakpoint()
|
||||||
|
|
||||||
stack = Stack(self.config, self.custom_provider_registry)
|
stack = Stack(self.config, self.custom_provider_registry)
|
||||||
await stack.initialize()
|
await stack.initialize()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue