-
Notifications
You must be signed in to change notification settings - Fork 421
'sampling_rate' and 'xray_trace_id' cannot be suppressed #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey Hiroya, thanks for opening up an issue. Sampling rate is part of the spec and as you noticed cannot be suppressed. For X-Ray, it is automatically suppressed if X-Ray isn't enabled for the function. When X-Ray is enabled, this log entry allows CloudWatch Service Lens to combine Logs, Metrics and Traces in one page. Aside for sampling rate, may I ask why you'd like to suppress X-Ray Trace ID field despite enabling it in the function? I believe the docs can be clearer on that, so I'll amend it later :) Thanks |
Hello Heitor.
Well, I see.
So far I've been using x-ray-ids in the cloudwatch log report to do surveys, etc., but I've never found it very inconvenient. |
Let the issue be resolved this time. |
Just created an issue to track doc updates for this - Thanks a lot for flagging it @papi-tokei, much appreciated. |
@papi-tokei letting you know that this is now live in the docs :) We appreciate your feedback very much on helping us improve the docs |
@heitorlessa |
Thanks for the useful tools.
I use aws-lambda-powertools-python in Lambda python 3.8.
for document
but I can't suppress the 'sampling_rate' and 'xray_trace_id'
(Is it a specification that 'sampling_rate' cannot be suppressed?)
I want to suppress the 'sampling_rate' and 'xray_trace_id'.
Expected Behavior
Expected output is below.
Current Behavior
I write below code.
The actual output is below.
(xray_trace_id is masked)
Steps to Reproduce (for bugs)
Environment
The text was updated successfully, but these errors were encountered: