feat(langchain): Record run_name as gen_ai.function_id on Invoke Agent Spans#5926
feat(langchain): Record run_name as gen_ai.function_id on Invoke Agent Spans#5926alexander-alderman-webb wants to merge 13 commits intowebb/langchain/split-out-testfrom
run_name as gen_ai.function_id on Invoke Agent Spans#5926Conversation
run_name as gen_ai.pipeline.name on Invoke Agent Spans
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Langchain
Other
Bug Fixes 🐛
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
Codecov Results 📊✅ 31 passed | Total: 31 | Pass Rate: 100% | Execution Time: 18.83s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 15470 uncovered lines. Files with missing lines (1)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 26.04% 27.27% +1.23%
==========================================
Files 190 191 +1
Lines 21358 21270 -88
Branches 7066 7008 -58
==========================================
+ Hits 5562 5800 +238
- Misses 15796 15470 -326
- Partials 482 504 +22Generated by Codecov Action |
run_name as gen_ai.pipeline.name on Invoke Agent Spansrun_name as gen_ai.function_id on Invoke Agent Spans
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 3c7adea. Configure here.

Description
Set
run_nameas thegen_ai.function_idattribute instead ofgen_ai.agent.name.Add tests for
AgentExecutor.invoke()based onAgentExecutor.stream()test.Add tests with
create_openai_tools_agent().with_config()to test all branches for extracting therun_name.Issues
Reminders
tox -e linters.feat:,fix:,ref:,meta:)