Repository navigation
Preserve OpenAI cost on deduplicated Agents spans - #2346
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. Important Approval pendingCodeRabbit has no unresolved comments, but it has not reviewed the latest commit. Use the checkbox below to review the latest commit. CodeRabbit will approve the changes if it finds no blocking issues.
📝 WalkthroughWalkthroughOpenAI Agents instrumentation now discovers the instrumented client base URL for Merge Risk: ⚪ Minimal · up to This localized change preserves cost calculation for deduplicated OpenAI Agents spans while leaving Agents-only spans unchanged; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
…nai-agents-operation-cost
…nai-agents-operation-cost
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
Summary
Tests
uv run pytest tests/otel_integrations/test_openai_agents.py -quv run ruff check logfire/_internal/integrations/openai_agents.py tests/otel_integrations/test_openai_agents.pyuv run ruff format --check logfire/_internal/integrations/openai_agents.py tests/otel_integrations/test_openai_agents.pyuv run pyright logfire/_internal/integrations/openai_agents.py tests/otel_integrations/test_openai_agents.py