forked from run-llama/llama_index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
span_id
attribute to Events (instrumentation) (run-llama#12417)
* add span_id to Event * remove raise err in NullHandler * wip * modify root dispatcher event enclosing span * remove *args as we have bound_args now * add LLMChatInProgressEvent * add LLMStructuredPredict Eventst * store span_id before await executions * add SpanDropEvent with err_str payload * add event to _achat; flush current_span_id when open_spans is empty * llm callbacks use root span_id * add unit tests * remove print statements * provide context manager returning a distpatch event partial with correct span id * move to context manager usage * fix invocation of cm * define and use get_dispatch_event method * remove aim tests
- Loading branch information
Showing
22 changed files
with
617 additions
and
132 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
Oops, something went wrong.