llama-stack/llama_stack/providers/utils/telemetry
Dinesh Yeduguru 05f6b44da7
Fix telemetry (#787)
# What does this PR do?

PR fixes couple of issues with telemetry:
1) The REST refactor changed the method from get_span_tree to
query_span_tree, which is causing the server side to return empty spans
2) Library client has introduced a new event loop, which required
changing the location of where start and end trace are called


## Test Plan

LLAMA_STACK_CONFIG="/Users/dineshyv/.llama/distributions/llamastack-fireworks/fireworks-run.yaml"
pytest -v tests/client-sdk/agents/test_agents.py -k
"test_builtin_tool_web_search"


And querying for spans from the agent run using the library client.
2025-01-16 10:36:13 -08:00
..
__init__.py kill unnecessarily large imports from telemetry init 2024-12-08 16:57:16 -08:00
dataset_mixin.py Fix telemetry (#787) 2025-01-16 10:36:13 -08:00
sqlite_trace_store.py Update Telemetry API so OpenAPI generation can work (#640) 2024-12-16 13:00:14 -08:00
trace_protocol.py Fix failing flake8 E226 check (#701) 2025-01-02 09:04:07 -08:00
tracing.py Fix telemetry to work on reinstantiating new lib cli (#761) 2025-01-14 11:31:50 -08:00