WIP: [rust]: enable rust endpoints for baggage#6686
WIP: [rust]: enable rust endpoints for baggage#6686rachelyangdog wants to merge 1 commit intomainfrom
Conversation
|
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 846d3cd9e4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| .context | ||
| .baggage() | ||
| .iter() | ||
| .map(|(k, (v, _))| (decode_baggage_key(k.as_str()), v.as_str().to_string())) |
There was a problem hiding this comment.
Avoid decoding literal
%HH sequences in baggage keys
get_all_baggage always runs decode_baggage_key on every key, which means a valid literal key like user%2Fid is returned as user/id. This is lossy and can also collapse distinct keys (e.g., a/b and a%2Fb) into one map entry, silently dropping baggage data. The issue appears whenever callers use % followed by hex digits in a key, which is allowed by is_tchar and therefore currently stored unescaped.
Useful? React with 👍 / 👎.
| if ctx.context.get::<BaggageOverflowed>().is_some() { | ||
| debug!("set_baggage: baggage overflow flag set, skipping"); | ||
| return; |
There was a problem hiding this comment.
Reset overflow guard after remove_all_baggage
After one overflow, set_baggage permanently returns early because it checks BaggageOverflowed in the context; however, remove_all_baggage only clears baggage entries and does not clear that sentinel. As a result, once a span exceeds limits, later remove_all_baggage + set_baggage on the same span cannot recover and all future writes are dropped.
Useful? React with 👍 / 👎.
|
✨ Fix all issues with BitsAI or with Cursor
|
| tests/parametric/test_headers_baggage.py::Test_Headers_Baggage::test_baggageheader_maxitems_inject_D016: missing_feature # Created by easy win activation script | ||
| tests/parametric/test_headers_baggage.py::Test_Headers_Baggage::test_headers_baggage_default_D001: missing_feature # Created by easy win activation script | ||
| tests/parametric/test_headers_baggage.py::Test_Headers_Baggage::test_headers_baggage_only_D002: missing_feature # Created by easy win activation script | ||
| # tests/parametric/test_headers_baggage.py::Test_Headers_Baggage: '>=0.2.1' # Modified by easy win activation script |
There was a problem hiding this comment.
If those line are not needed, could you remove them ?
Motivation
Changes
Workflow
🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
tests/ormanifests/is modified ? I have the approval from R&P teambuild-XXX-imagelabel is present