Closed midu-git closed 6 months ago
Hey @midu-git,
Thanks for reporting this!
It seems that back in the past, we were ALWAYS setting AUTO_KEEP
(1), after we added W3C support, we started using whatever the user had. So now, we'll just mark to AUTO_KEEP
when no sampling is found.
I created a PR for this, and will follow up as things progress!
Expected Behavior
Calling getTraceHeaders() should not error out and provide trace headers correctly.
Actual Behavior
We are using this guy from a lambda called on the s3 middleware. At least in some situations, we encounter this error
We have identified the error to this code
Basically, you allow a number to be returned, but it should be
number | undefined
.Steps to Reproduce the Problem
1. 1. 1.
Specifications
Stacktrace