Skip to content

fix: improve OpenClaw observability cost consistency#206

Open
mnajafian-nv wants to merge 1 commit into
NVIDIA:mainfrom
mnajafian-nv:fix/observability-cost-surfacing
Open

fix: improve OpenClaw observability cost consistency#206
mnajafian-nv wants to merge 1 commit into
NVIDIA:mainfrom
mnajafian-nv:fix/observability-cost-surfacing

Conversation

@mnajafian-nv
Copy link
Copy Markdown
Contributor

@mnajafian-nv mnajafian-nv commented Jun 3, 2026

Overview

This PR propagates provider-reported cost through ATIF, ATOF, OpenInference, and OpenClaw replay outputs. It does not infer pricing from token counts.

  • I confirm this contribution is my own work, or I have the right to submit it under this project's license.
  • I searched existing issues and open pull requests, and this does not duplicate existing work.

Details

  • Preserves provider-reported cost fields in ATIF metrics.
  • Emits provider-reported cost through the OpenInference llm.cost.total attribute.
  • Keeps ATOF raw JSONL payloads faithful to provider lifecycle events.
  • Normalizes nested OpenClaw replay cost fields into cost_usd.
  • Documents that NeMo Relay surfaces reported costs but does not compute provider pricing.

Where should the reviewer start?

Start with crates/core/src/observability/atif.rs and crates/core/src/observability/openinference.rs, then review the focused coverage in crates/core/tests/unit/atif_tests.rs, crates/core/tests/unit/observability/openinference_tests.rs, and integrations/openclaw/test/llm-replay.test.ts.

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • Relates to OpenClaw observability consistency work.

Follow-up Work

The remaining OpenClaw observability items stay as follow-ups rather than expanding this PR:

  • OpenInference flattened message/tool attributes, if we want full llm.input_messages.*, llm.output_messages.*, and llm.tools.* coverage beyond readable summaries.
  • OpenClaw ATOF provenance/fidelity audit for hook-backed events.
  • OpenClaw nested-subagent fixture coverage, if we have or can create a real OpenClaw scenario that emits subagent lifecycle hooks.

Summary by CodeRabbit

  • New Features
    • Added comprehensive cost metric extraction and aggregation for LLM usage data
    • System now recognizes and normalizes multiple cost data formats from different providers
    • LLM cost totals are now included in observability metrics and exports alongside token counts
    • Documentation clarified to explain cost attribute handling and behavior

Signed-off-by: mnajafian-nv <mnajafian@nvidia.com>
@mnajafian-nv mnajafian-nv added this to the 0.4 milestone Jun 3, 2026
@mnajafian-nv mnajafian-nv self-assigned this Jun 3, 2026
@mnajafian-nv mnajafian-nv requested a review from a team as a code owner June 3, 2026 03:39
@mnajafian-nv mnajafian-nv added the Improvement improvement to existing functionality label Jun 3, 2026
@github-actions github-actions Bot added size:M PR is medium Bug issue describes bug; PR fixes bug lang:js PR changes/introduces Javascript/Typescript code and removed Improvement improvement to existing functionality labels Jun 3, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 3, 2026

Review Change Stack

Walkthrough

This PR extends metric extraction and aggregation across ATIF and OpenInference observability modules to recognize, parse, and emit LLM cost fields (cost_usd and cost.total) with the same rigor as token counts. The changes flow from metric parsing → trajectory aggregation → attribute emission → comprehensive test coverage.

Changes

LLM Cost Metrics Extraction and Aggregation

Layer / File(s) Summary
ATIF cost field recognition in extract_metrics
crates/core/src/observability/atif.rs
TOKEN_USAGE_KNOWN_KEYS expands to include cost; cost extraction now recognizes cost_usd and falls back to cost.total; early-return condition requires all of prompt, completion, cached, and cost to be absent before returning None.
ATIF trajectory aggregation refactoring
crates/core/src/observability/atif.rs
compute_final_metrics refactored to use per-field presence flags (has_prompt, has_completion, has_cached, has_cost) instead of a single has_any boolean, populating each total independently.
OpenInference cost attribute emission
crates/core/src/observability/openinference.rs
Derives is_llm once and reuses it; conditionally emits oi::llm::cost::TOTAL when event contains LLM cost data; adds helper functions to extract cost totals from usage JSON by reading cost_usd or cost.total.
ATIF unit tests for cost extraction and aggregation
crates/core/tests/unit/atif_tests.rs
Tests validate cost_usd parsing for OpenAI and cost.total derivation for Anthropic; new test ensures compute_final_metrics preserves zero cost while leaving token totals None.
ATOF and OpenInference test coverage for cost fields
crates/core/tests/unit/observability/atof_tests.rs, crates/core/tests/unit/observability/openinference_tests.rs
Wire-format fixtures now include cost fields; assertions validate cost preservation in exported JSONL and correct emission/omission of llm.cost.total across OpenAI and Anthropic tests.
Documentation and LLM replay integration
docs/supported-integrations/openclaw-plugin.mdx, integrations/openclaw/test/llm-replay.test.ts
OpenClaw plugin docs clarify that costs are emitted only when explicitly provided; Anthropic test fixture adds cost.total and validates mapping to cost_usd.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title follows Conventional Commits format with type 'fix' and a concise imperative summary under 72 characters.
Description check ✅ Passed The description covers all required template sections: Overview with confirmations, Details explaining changes, Where to start with file guidance, and Related Issues.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added the lang:rust PR changes/introduces Rust code label Jun 3, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
crates/core/src/observability/atif.rs (1)

627-632: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Preserve nested provider cost fields instead of dropping them.

Marking "cost" as a fully known key strips the entire nested object from metrics.extra, but this function only promotes cost.total into cost_usd. A payload like {"cost":{"total":0.0042,"input":0.003,"output":0.0012}} will now lose the provider-reported breakdown in ATIF.

Suggested fix
 const TOKEN_USAGE_KNOWN_KEYS: &[&str] = &[
     "prompt_tokens",
     "completion_tokens",
     "cached_tokens",
     "cost_usd",
-    "cost",
     "prompt_token_ids",
     "completion_token_ids",
     "logprobs",
 ];

Also applies to: 655-683

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@crates/core/src/observability/atif.rs` around lines 627 - 632, Remove "cost"
from TOKEN_USAGE_KNOWN_KEYS so the nested cost object is not treated as a
fully-known key and dropped; instead, in the code path that promotes cost.total
into the flat field (the logic that sets metrics.extra["cost_usd"] from a nested
cost.total), explicitly read metrics.extra["cost"]["total"] (or the incoming
payload's cost.total), set metrics.extra["cost_usd"] to that value if present,
and leave the original metrics.extra["cost"] object intact. Update both
TOKEN_USAGE_KNOWN_KEYS and the promotion logic (the block that extracts
cost.total into cost_usd) so the provider breakdown (e.g.,
cost.input/cost.output) is preserved.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@crates/core/src/observability/atif.rs`:
- Around line 627-632: Remove "cost" from TOKEN_USAGE_KNOWN_KEYS so the nested
cost object is not treated as a fully-known key and dropped; instead, in the
code path that promotes cost.total into the flat field (the logic that sets
metrics.extra["cost_usd"] from a nested cost.total), explicitly read
metrics.extra["cost"]["total"] (or the incoming payload's cost.total), set
metrics.extra["cost_usd"] to that value if present, and leave the original
metrics.extra["cost"] object intact. Update both TOKEN_USAGE_KNOWN_KEYS and the
promotion logic (the block that extracts cost.total into cost_usd) so the
provider breakdown (e.g., cost.input/cost.output) is preserved.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 82c3639d-54b7-4ebe-b236-363143f52dcd

📥 Commits

Reviewing files that changed from the base of the PR and between b85bd24 and 72fd1ff.

📒 Files selected for processing (7)
  • crates/core/src/observability/atif.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/atif_tests.rs
  • crates/core/tests/unit/observability/atof_tests.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • docs/supported-integrations/openclaw-plugin.mdx
  • integrations/openclaw/test/llm-replay.test.ts
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Check / Run
  • GitHub Check: Preview docs
🧰 Additional context used
📓 Path-based instructions (28)
{docs/**,README.md,CONTRIBUTING.md}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

{docs/**,README.md,CONTRIBUTING.md}: For docs-only changes, run targeted checks only if commands, package names, or examples changed. Use just docs for docs-site builds and just docs-linkcheck when links changed
Run docs site build with just docs

Files:

  • docs/supported-integrations/openclaw-plugin.mdx
{docs/**,README.md,CONTRIBUTING.md,**/*.md}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

Run docs link validation with just docs-linkcheck when links change

Files:

  • docs/supported-integrations/openclaw-plugin.mdx
{docs/**,README.md}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

Verify README and docs entry points still match current package names and paths for large or public-facing changes

Files:

  • docs/supported-integrations/openclaw-plugin.mdx
{docs/**,examples/**,README.md}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

Verify examples still run with documented commands for large or public-facing changes

Files:

  • docs/supported-integrations/openclaw-plugin.mdx
{docs/**,README.md,**/Cargo.toml,**/package.json,**/*.md}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

Ensure renamed public surfaces are reflected consistently in manifests and docs for large or public-facing changes

Files:

  • docs/supported-integrations/openclaw-plugin.mdx
**/*.{md,mdx,py,sh,yaml,yml,toml,json}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Keep package names, repo references, and build commands current

Files:

  • docs/supported-integrations/openclaw-plugin.mdx
**/*.mdx

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

In MDX files, top-of-file comments must use JSX comment delimiters: {/* to open and */} to close. Do not use HTML comments for MDX SPDX headers.

MDX top-of-file SPDX comments must use {/* ... */} delimiters instead of HTML comment delimiters (Must-Fix)

Files:

  • docs/supported-integrations/openclaw-plugin.mdx
**/*.{html,md,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Include SPDX license header in HTML and Markdown files using HTML comment syntax

Files:

  • docs/supported-integrations/openclaw-plugin.mdx
docs/**/*.{md,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Update embedded documentation snippets, patch docs, and binding-support notes if examples or supported bindings changed

Files:

  • docs/supported-integrations/openclaw-plugin.mdx
docs/**

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Run just docs or ./scripts/build-docs.sh html to regenerate ignored Fern API reference pages before validation for documentation site changes

Files:

  • docs/supported-integrations/openclaw-plugin.mdx
{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}

⚙️ CodeRabbit configuration file

{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}: Review documentation for technical accuracy against the current API, command correctness, and consistency across language bindings.
Flag stale examples, missing SPDX headers where required, and instructions that no longer match CI or pre-commit behavior.

Files:

  • docs/supported-integrations/openclaw-plugin.mdx
**/*{test,spec,smoke}.{js,ts,py}

📄 CodeRabbit inference engine (.agents/skills/contribute-integration/SKILL.md)

Relevant integration tests or smoke path must pass

Files:

  • integrations/openclaw/test/llm-replay.test.ts
{crates/adaptive/**/*.rs,**/*test*.{rs,py,go,ts,js},**/*adaptive*test*.{rs,py,go,ts,js},docs/plugins/adaptive/**}

📄 CodeRabbit inference engine (.agents/skills/maintain-optimizer/SKILL.md)

Maintain documented and tested validation and report behavior for adaptive surfaces

Files:

  • integrations/openclaw/test/llm-replay.test.ts
  • crates/core/tests/unit/atif_tests.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/tests/unit/observability/atof_tests.rs
**/*.{wasm,js,ts}{,x}

📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)

Ensure WebAssembly package naming conventions are consistent with generated package expectations and downstream consumption

Files:

  • integrations/openclaw/test/llm-replay.test.ts
**/*.{js,ts,jsx,tsx}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

Run Node.js formatting with npm run format --workspace=nemo-relay-node

Include SPDX license header in all JavaScript and TypeScript source files using double-slash comment syntax

Files:

  • integrations/openclaw/test/llm-replay.test.ts
**/*.{rs,py,js,ts,tsx,jsx,go,sh,toml,yaml,yml,md}

📄 CodeRabbit inference engine (AGENTS.md)

Keep SPDX headers on source, docs, scripts, and configuration files. The project is Apache-2.0.

Files:

  • integrations/openclaw/test/llm-replay.test.ts
  • crates/core/tests/unit/atif_tests.rs
  • crates/core/src/observability/atif.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/observability/atof_tests.rs
**/*.{rs,py,go,js,ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Follow binding naming conventions: Rust and Python use snake_case, C FFI exports prefixed nemo_relay_, Go uses PascalCase for public APIs, Node.js uses camelCase.

Files:

  • integrations/openclaw/test/llm-replay.test.ts
  • crates/core/tests/unit/atif_tests.rs
  • crates/core/src/observability/atif.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/observability/atof_tests.rs
**/*.rs

📄 CodeRabbit inference engine (.agents/skills/add-binding-feature/SKILL.md)

Use snake_case naming convention for Rust identifiers (e.g., nemo_relay_tool_call)

**/*.rs: Any Rust change must run just test-rust
Any Rust change must run cargo fmt --all
Any Rust change must run cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Run cargo fmt --all for all FFI work since it is Rust work
Run just test-rust to validate FFI changes
Run cargo clippy --workspace --all-targets -- -D warnings to enforce strict linting on FFI work

When Rust files changed as part of Go work, also run cargo fmt --all, just test-rust, and cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Run cargo fmt --all when Rust files are changed as part of Node work
Run cargo clippy --workspace --all-targets -- -D warnings when Rust files are changed as part of Node work
Run just test-rust when Rust files are changed as part of Node work

**/*.rs: Run cargo fmt --all to format all Rust code
Run cargo clippy --workspace --all-targets -- -D warnings to enforce all clippy lints as errors

**/*.rs: Run cargo fmt --all when Rust files changed as part of WebAssembly work
Run cargo clippy --workspace --all-targets -- -D warnings when Rust files changed as part of WebAssembly work

**/*.rs: If any Rust code changed, always run just test-rust
If any Rust code changed, also run cargo fmt --all
If any Rust code changed, also run cargo clippy --workspace --all-targets -- -D warnings
Run Rust formatting with cargo fmt --all
Run Rust linting with cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Use cargo fmt for Rust code formatting
Run cargo clippy -- -D warnings to lint Rust code and treat all warnings as errors
Use Rust snake_case naming convention for Rust identifiers
Include SPDX license header in all Rust source files using double-slash comment syntax
Validate Rust code with uv run pre-commit run --all-files to enforce cargo fmt formatting check, cargo clippy lints, and cargo deny aud...

Files:

  • crates/core/tests/unit/atif_tests.rs
  • crates/core/src/observability/atif.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/observability/atof_tests.rs
**/{Cargo.toml,**/*.rs}

📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)

Maintain consistency between Rust package names in Cargo.toml and their actual usage across the codebase

Files:

  • crates/core/tests/unit/atif_tests.rs
  • crates/core/src/observability/atif.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/observability/atof_tests.rs
**/*.{h,hpp,c,cpp,rs}

📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)

Ensure FFI header and library naming follows consistent conventions across platform-specific builds

Files:

  • crates/core/tests/unit/atif_tests.rs
  • crates/core/src/observability/atif.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/observability/atof_tests.rs
{crates/core,crates/adaptive}/**/*

📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)

Changes to crates/core or crates/adaptive must run the full language matrix

Files:

  • crates/core/tests/unit/atif_tests.rs
  • crates/core/src/observability/atif.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/observability/atof_tests.rs
**/*.{rs,toml}

📄 CodeRabbit inference engine (.agents/skills/rename-surfaces/SKILL.md)

Update Rust crate names and module prefixes during coordinated rename operations

Files:

  • crates/core/tests/unit/atif_tests.rs
  • crates/core/src/observability/atif.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/observability/atof_tests.rs
crates/core/**/*.rs

📄 CodeRabbit inference engine (.agents/skills/test-go-binding/SKILL.md)

If the change touched crates/core or shared runtime semantics, also use validate-change for broader validation

crates/core/**/*.rs: Use Json = serde_json::Value in Rust-facing runtime APIs where the existing code expects JSON payloads.
Use Result<T> with FlowError in core runtime paths. Keep errors explicit and binding-appropriate at the wrapper layer.

Files:

  • crates/core/tests/unit/atif_tests.rs
  • crates/core/src/observability/atif.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/observability/atof_tests.rs
crates/{core,adaptive}/**

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If crates/core or crates/adaptive changed, run the full matrix across Rust, Python, Go, Node.js, and WebAssembly

Files:

  • crates/core/tests/unit/atif_tests.rs
  • crates/core/src/observability/atif.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/observability/atof_tests.rs
crates/**/*.rs

📄 CodeRabbit inference engine (AGENTS.md)

crates/**/*.rs: Keep async behavior on the existing tokio-based model. Bindings should preserve callback and future lifetimes rather than blocking or hiding async work unexpectedly.
Use Json = serde_json::Value in Rust-facing runtime APIs for JSON payload handling.

Files:

  • crates/core/tests/unit/atif_tests.rs
  • crates/core/src/observability/atif.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/observability/atof_tests.rs
crates/{core,adaptive}/**/*.rs

⚙️ CodeRabbit configuration file

crates/{core,adaptive}/**/*.rs: Review the Rust runtime for async correctness, scope isolation, middleware ordering, and event lifecycle regressions.
Pay close attention to task-local/thread-local scope propagation, callback lifetimes, stream finalization, and root_uuid isolation.
Public API changes should preserve existing behavior unless tests and docs show the intended migration path.

Files:

  • crates/core/tests/unit/atif_tests.rs
  • crates/core/src/observability/atif.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/src/observability/openinference.rs
  • crates/core/tests/unit/observability/atof_tests.rs
{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}

⚙️ CodeRabbit configuration file

{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}: Tests should cover the behavior promised by the changed API surface, including error paths and cross-request isolation where relevant.
Prefer assertions on lifecycle events, scope stacks, middleware ordering, and binding parity over shallow smoke tests.

Files:

  • crates/core/tests/unit/atif_tests.rs
  • crates/core/tests/unit/observability/openinference_tests.rs
  • crates/core/tests/unit/observability/atof_tests.rs
crates/core/src/observability/{atif,otel,openinference}.rs

📄 CodeRabbit inference engine (.agents/skills/maintain-observability/SKILL.md)

When changing event fields in ATIF, OpenTelemetry, or OpenInference observability surfaces, keep the core event model in crates/core/src/observability/atif.rs, crates/core/src/observability/otel.rs, and crates/core/src/observability/openinference.rs in sync

Files:

  • crates/core/src/observability/atif.rs
  • crates/core/src/observability/openinference.rs
🧠 Learnings (1)
📚 Learning: 2026-05-07T18:04:44.387Z
Learnt from: mnajafian-nv
Repo: NVIDIA/NeMo-Flow PR: 67
File: integrations/openclaw/src/modules.ts:1-2
Timestamp: 2026-05-07T18:04:44.387Z
Learning: In NVIDIA/NeMo-Flow, TypeScript source files should use `//` line comments for SPDX headers (e.g., `// SPDX-FileCopyrightText: ...` and `// SPDX-License-Identifier: ...`) rather than C-style block comments (`/* ... */`). The repo’s copyright checker enforces this mapping, so `//` SPDX headers in `.ts` files should not be flagged as a style violation.

Applied to files:

  • integrations/openclaw/test/llm-replay.test.ts
🔇 Additional comments (13)
crates/core/src/observability/openinference.rs (4)

690-692: LGTM!


703-707: LGTM!


712-734: LGTM!


735-755: LGTM!

crates/core/tests/unit/observability/atof_tests.rs (3)

304-305: LGTM!

Also applies to: 413-413


339-340: LGTM!

Also applies to: 422-422


376-377: LGTM!

Also applies to: 437-437

crates/core/tests/unit/observability/openinference_tests.rs (4)

695-696: LGTM!

Also applies to: 722-722


772-773: LGTM!

Also applies to: 807-807


1503-1503: LGTM!


1554-1555: LGTM!

Also applies to: 1602-1605

docs/supported-integrations/openclaw-plugin.mdx (1)

284-287: LGTM!

integrations/openclaw/test/llm-replay.test.ts (1)

128-128: LGTM!

Also applies to: 186-186

@mnajafian-nv mnajafian-nv added Improvement improvement to existing functionality and removed Bug issue describes bug; PR fixes bug labels Jun 3, 2026
Comment on lines +286 to +287
NeMo Relay does not infer provider pricing; cost attributes are emitted only
when OpenClaw supplies explicit cost fields.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should preemptively omit this.

Suggested change
NeMo Relay does not infer provider pricing; cost attributes are emitted only
when OpenClaw supplies explicit cost fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement improvement to existing functionality lang:js PR changes/introduces Javascript/Typescript code lang:rust PR changes/introduces Rust code size:M PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants