Repository navigation
feat: w3c fields - #646
Merged
Merged
feat: w3c fields#646
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #646 +/- ##
==========================================
- Coverage 82.99% 82.04% -0.96%
==========================================
Files 36 37 +1
Lines 1429 1487 +58
==========================================
+ Hits 1186 1220 +34
- Misses 240 264 +24
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
maxday
marked this pull request as ready for review
October 7, 2026 10:02
M-Elsaeed
reviewed
Oct 7, 2026
| // surfaced through LambdaContext.W3C(). Any other key carried on | ||
| // clientContext.w3c is ignored, and any allowlisted key whose value is not a | ||
| // JSON string is dropped. | ||
| var W3CAllowedFields = []string{"traceparent", "tracestate", "baggage"} |
Contributor
There was a problem hiding this comment.
should we make this immutable?
Stefan9283
approved these changes
Oct 7, 2026
M-Elsaeed
approved these changes
Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes:
Add LambdaContext.W3C() for W3C trace-context propagation.
Surfaces the W3C trace-context fields that Lambda carries on clientContext.w3c through a new LambdaContext.W3C() accessor, matching the behavior shipped in the Python (aws-lambda-python-runtime-interface-client#228) and Node.js (aws-lambda-nodejs-runtime-interface-client#201) runtime interface clients.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.