llama-stack-mirror/llama_stack/providers/inline
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
..
agents Update spec 2025-01-13 23:16:53 -08:00
datasetio Add persistence for localfs datasets (#557) 2025-01-09 17:34:18 -08:00
eval move DataSchemaValidatorMixin into standalone utils (#720) 2025-01-06 13:25:09 -08:00
inference Update spec 2025-01-13 23:16:53 -08:00
ios/inference impls -> inline, adapters -> remote (#381) 2024-11-06 14:54:05 -08:00
memory [remove import *] clean up import *'s (#689) 2024-12-27 15:45:44 -08:00
post_training Add init files to post training folders (#711) 2025-01-13 20:19:18 -08:00
safety Consolidating Safety tests from various places under client-sdk (#699) 2025-01-13 17:46:24 -08:00
scoring Add X-LlamaStack-Client-Version, rename ProviderData -> Provider-Data (#735) 2025-01-09 11:51:36 -08:00
telemetry Fix telemetry to work on reinstantiating new lib cli (#761) 2025-01-14 11:31:50 -08:00
tool_runtime agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
__init__.py impls -> inline, adapters -> remote (#381) 2024-11-06 14:54:05 -08:00