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