llama-stack-mirror/llama_stack/providers/utils
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
..
bedrock add missing init file 2024-12-17 11:49:03 -08:00
common move DataSchemaValidatorMixin into standalone utils (#720) 2025-01-06 13:25:09 -08:00
datasetio Update the "InterleavedTextMedia" type (#635) 2024-12-17 11:18:31 -08:00
inference Fixes; make inference tests pass with newer tool call types 2025-01-13 23:16:53 -08:00
kvstore Replaced zrangebylex method in the range method (#521) 2025-01-11 22:04:34 -08:00
memory [remove import *] clean up import *'s (#689) 2024-12-27 15:45:44 -08:00
scoring [rag evals] refactor & add ability to eval retrieval + generation in agentic eval pipeline (#664) 2025-01-02 11:21:33 -08:00
telemetry Fix telemetry to work on reinstantiating new lib cli (#761) 2025-01-14 11:31:50 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00