-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(session): integrate OpenTelemetry for event tracing refactor(session): simplify jwt check in session method * remove deprecated `header` params from HttpClient Signed-off-by: Teo <[email protected]> * refactor(http_client): use `header` * Move SessionExporter to `session` Signed-off-by: Teo <[email protected]> * draft Signed-off-by: Teo <[email protected]> * refactor(session): update session tracer provider management * rmv sess. tests * deactivate console exporter Signed-off-by: Teo <[email protected]> * tests: mock processor to use linear simple span processor (no batch) * revert setup fixture and extra tests Signed-off-by: Teo <[email protected]> * refactor(session): restore otel_exporter for span processing * test: Enhance assertions in session tests * refactor(session): reorder tracer initialization after session start * revert TestSingleSession.test_add_tags Signed-off-by: Teo <[email protected]> * revert TestSingleSession.test_session Signed-off-by: Teo <[email protected]> * fix: add missing api_key to endpoint calls * revert: Session._start_session Signed-off-by: Teo <[email protected]> * match order of execution with original / ease of comparison Signed-off-by: Teo <[email protected]> * remove queue attr Signed-off-by: Teo <[email protected]> * refactor(session): persisted span processor attr; * flush_now flag Signed-off-by: Teo <[email protected]> * small improves Signed-off-by: Teo <[email protected]> * Improve general lifecycle management of OTEL Signed-off-by: Teo <[email protected]> * Removed class-level state from SessionExporterEach Session now gets its own TracerProvider instance;; Shutdown flag is now instance-level Signed-off-by: Teo <[email protected]> * 14 errors Signed-off-by: Teo <[email protected]> * 13 errors Signed-off-by: Teo <[email protected]> * 1 error Signed-off-by: Teo <[email protected]> * 0 error Signed-off-by: Teo <[email protected]> * Cleanup deps Signed-off-by: Teo <[email protected]> * refactored code for `get_analytics` method merged in `main` * tests for the `get_analytics` method * linting * oops * add tests targeting SessionExporter Failing: test_export_with_missing_timestamp Signed-off-by: Teo <[email protected]> * SessionExporter: Added default value using current UTC time when end_timestamp is None Signed-off-by: Teo <[email protected]> * Moved timestamp handling earlier in the process, before OpenTelemetry validation Signed-off-by: Teo <[email protected]> * test: add test for exporting LLM event handling * test: add test for handling missing event ID in export * add session url * feat(HttpClient): add session management and header preparation * feat(HttpClient): Cache host env * refactor(HttpClient): improve session management and headers * feat(session): add static resource management in exporter delete(tests): remove conftest.py test configuration file refactor(session): remove unused resource and tracer provider methods * feat(session): force flush pending spans on session end * replace core manual test * remove log flag * refactor(client): simplify host_env retrieval logic * refactor(http_client): covnert _prepare_headers to classmethod * ruff Signed-off-by: Teo <[email protected]> * added cost param to LLMEvent (how was this not here before??) * fix autogen. Added costs and completions * remove prints * better completion grabber * revert autogen line * updated autogen completions * black fixes * Revert "updated autogen completions" This reverts commit 8d542c0. * ruff format * revert notebook * revert math notebook * revert ollama notebook * revert anthropic notebook --------- Signed-off-by: Teo <[email protected]> Co-authored-by: Pratyush Shukla <[email protected]> Co-authored-by: reibs <[email protected]>
- Loading branch information
1 parent
0ce29b3
commit 76d3b7e
Showing
15 changed files
with
2,326 additions
and
1,751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.