feat: introduce span cache that allows lookup by traceId, sessionId and OC sessionKey - #15
Merged
Conversation
…nd OC sessionKey Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>
Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>
…_output closes Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>
…-observability into feat/in-plugin-cache
Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>
…lity plugin when OpenClaw does not emit a reliable outbound delivery signal This PR makes request completion more robust by: deferring root span completion until an outbound completion signal is observed using diagnostic message.processed as an additional completion source inferring outbound completion from agent_end for webchat when no stronger signal exists recording explicit completion reasons on the request span for easier trace analysis Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>
Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>
Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>
Castorche
approved these changes
Apr 23, 2026
Castorche
left a comment
Collaborator
There was a problem hiding this comment.
overall lgtm, a few comments related to semantic convention.
Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>
91pavan
added a commit
that referenced
this pull request
May 20, 2026
…nd OC sessionKey (#15) * feat: introduce span cache that allows lookup by traceId, sessionId and OC sessionKey Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com> * feat: add debug logs Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com> * feat: fix sequencing order: finalize agent/request after the last llm_output closes Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com> * fix: duplicate agent span being created for the same runtime session Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com> * feat: This change fixes request lifecycle completion in the observability plugin when OpenClaw does not emit a reliable outbound delivery signal This PR makes request completion more robust by: deferring root span completion until an outbound completion signal is observed using diagnostic message.processed as an additional completion source inferring outbound completion from agent_end for webchat when no stronger signal exists recording explicit completion reasons on the request span for easier trace analysis Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com> * fix: tests Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com> * feat: add memory_failure_rate metric that uses the cache spans Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com> * feat: address review comments Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com> --------- Signed-off-by: Pavan Sudheendra <pavan0591@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR does two related things:
Cache lifecycle management: