Closed
Description
Is your feature request related to a problem? Please describe.
Customers like @michaelbrewer would like the ability to override Tracer default behaviour by not adding Lambda handler, or a method's response as X-Ray subsegment metadata - While X-Ray metadata isn't indexed or searchable, it might contain sensitive information that can violate one's compliance.
Describe the solution you'd like
A new keyword argument for both capture_method
and capture_lambda_handler
:
@tracer.capture_lambda_handler(capture_response=False)
def handler(event, context):
...
@tracer.capture_method(capture_response=False)
def a_function():
...
Describe alternatives you've considered
- Encrypt or mask sensitive information from response
Additional context
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Triage
Milestone
Relationships
Development
No branches or pull requests
Activity
michaelbrewer commentedon Aug 22, 2020
Thank you @heitorlessa .
Without
this featured, would have prevented us from using this library in some cases.feat: capture_response as metadata option #127
Merge branch 'develop' into pydantic
heitorlessa commentedon Aug 26, 2020
This was released in 1.4.0