fix: add flattened OpenInference LLM attributes for annotations and replay#207
Merged
rapids-bot[bot] merged 2 commits intoJun 3, 2026
Conversation
…w replay Signed-off-by: mnajafian-nv <mnajafian@nvidia.com>
WalkthroughRefactors OpenInference LLM span attribute generation into helpers that emit flattened llm.* attributes (messages, system prompt, tool schema/calls, invocation parameters, finish reason) from codec-annotated payloads or parsed OpenClaw replay JSON; adds tests and docs. ChangesOpenInference LLM Attribute Extraction Refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 1 warning)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
willkill07
previously approved these changes
Jun 3, 2026
Signed-off-by: mnajafian-nv <mnajafian@nvidia.com>
willkill07
approved these changes
Jun 3, 2026
Member
|
/merge |
1 similar comment
Contributor
Author
|
/merge |
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.
Overview
This PR adds flattened OpenInference LLM message and tool-call attributes from typed codec annotations, with a narrowly scoped fallback for OpenClaw replay request/response payloads.
Details
llm.input_messages.*andllm.output_messages.*attributes from typed annotated LLM requests and responses.llm.tools.*.tool.json_schema,llm.invocation_parameters, andllm.finish_reasonwhen typed codec annotations provide them.Where should the reviewer start?
Start with
crates/core/src/observability/openinference.rs, then review the focused coverage incrates/core/tests/unit/observability/openinference_tests.rs.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Validation
cargo fmt --all --checkcargo test -p nemo-relay openinference -- --nocapturecargo test -p nemo-relaycargo clippy -p nemo-relay --all-targets -- -D warningsnpm test --workspace=nemo-relay-openclawAdditional local validation
Summary by CodeRabbit
New Features
Tests
Documentation