llama-stack/llama_stack/cli
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
..
model Switch to use importlib instead of deprecated pkg_resources (#678) 2025-01-13 20:20:02 -08:00
scripts API Updates (#73) 2024-09-17 19:51:35 -07:00
stack Fix telemetry to work on reinstantiating new lib cli (#761) 2025-01-14 11:31:50 -08:00
tests Rename all inline providers with an inline:: prefix (#423) 2024-11-11 22:19:16 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
download.py Added optional md5 validate command once download is completed (#486) 2024-11-19 17:42:43 -08:00
llama.py Add a verify-download command to llama CLI (#457) 2024-11-14 11:47:51 -08:00
subcommand.py API Updates (#73) 2024-09-17 19:51:35 -07:00
table.py API Updates (#73) 2024-09-17 19:51:35 -07:00
verify_download.py Add a verify-download command to llama CLI (#457) 2024-11-14 11:47:51 -08:00