Skip to content

Tracer - Option to not add method/handler response as metadata  #127

@heitorlessa

Description

@heitorlessa

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

No type
No fields configured for issues without a type.

Projects

Status
Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions