ref(langgraph): Remove set_data_normalized for primitive attributes#5511
ref(langgraph): Remove set_data_normalized for primitive attributes#5511alexander-alderman-webb wants to merge 1 commit intomasterfrom
set_data_normalized for primitive attributes#5511Conversation
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. Bug Fixes 🐛Openai
Other
Documentation 📚
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
Codecov Results 📊✅ 13 passed | Total: 13 | Pass Rate: 100% | Execution Time: 7.62s 📊 Comparison with Base Branch
✨ No test changes detected All tests are passing successfully. ❌ Patch coverage is 0.00%. Project has 13670 uncovered lines. Files with missing lines (180)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 25.70% 30.84% +5.14%
==========================================
Files 189 189 —
Lines 19767 19767 —
Branches 6408 6408 —
==========================================
+ Hits 5080 6097 +1017
- Misses 14687 13670 -1017
- Partials 420 467 +47Generated by Codecov Action |
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.
| return | ||
|
|
||
| set_data_normalized(span, SPANDATA.GEN_AI_RESPONSE_MODEL, model_name) | ||
| span.set_data(SPANDATA.GEN_AI_RESPONSE_MODEL, model_name) |
There was a problem hiding this comment.
Model name shape may change
Low Severity
Replacing set_data_normalized(span, SPANDATA.GEN_AI_RESPONSE_MODEL, model_name) with span.set_data(...) changes how non-primitive model_name values are recorded. If response_metadata["model_name"] is ever a single-item list or a dict, normalization/unpacking no longer happens and the span data shape can differ from previous releases.
There was a problem hiding this comment.
I've only ever seen string response models 😅


Description
Remove
set_data_normalized()for attributes that do not require normalization.Issues
Reminders
tox -e linters.feat:,fix:,ref:,meta:)