llama-stack-mirror/llama_stack
Dinesh Yeduguru a174938fbd
Fix telemetry to work on reinstantiating new lib cli (#761)
# What does this PR do?

Since we maintain global state in our telemetry pipeline,
reinstantiating lib cli will cause us to add duplicate span processors
causing sqlite to lock out because of constraint violations since we now
have two span processor writing to sqlite. This PR changes the telemetry
adapter for otel to only instantiate the provider once and add the span
processsors only once.

Also fixes an issue llama stack build


## Test Plan

tested with notebook at
https://colab.research.google.com/drive/1ck7hXQxRl6UvT-ijNRZ-gMZxH1G3cN2d#scrollTo=9496f75c
2025-01-14 11:31:50 -08:00
..
apis Update spec 2025-01-13 23:16:53 -08:00
cli Fix telemetry to work on reinstantiating new lib cli (#761) 2025-01-14 11:31:50 -08:00
distribution [bugfix] fix streaming GeneratorExit exception with LlamaStackAsLibraryClient (#760) 2025-01-14 10:58:46 -08:00
providers Fix telemetry to work on reinstantiating new lib cli (#761) 2025-01-14 11:31:50 -08:00
scripts Fix to conda env build script 2024-12-17 12:19:34 -08:00
templates Consolidating Safety tests from various places under client-sdk (#699) 2025-01-13 17:46:24 -08:00
__init__.py export LibraryClient 2024-12-13 12:08:00 -08:00