You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/core/tracer.mdx
+8-6
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,6 @@ Tracer is an opinionated thin wrapper for [AWS X-Ray Python SDK](https://github.
17
17
* Support tracing async methods, generators, and context managers
18
18
* Auto patch supported modules, or a tuple of explicit modules supported by AWS X-Ray
19
19
20
-
<Notetype="warning">
21
-
<strong>Returning sensitive information from your Lambda handler or functions, where Tracer is used?</strong>
22
-
<br/><br/>
23
-
You can disable Tracer from capturing their responses as tracing metadata with <strong><code>capture_response=False</code></strong> parameter in both capture_lambda_handler and capture_method decorators.
24
-
</Note><br/>
25
-
26
20
## Initialization
27
21
28
22
Your AWS Lambda function must have permission to send traces to AWS X-Ray - Here is an example using AWS Serverless Application Model (SAM)
@@ -69,7 +63,15 @@ def handler(event, context):
69
63
charge_id = event.get('charge_id')
70
64
payment = collect_payment(charge_id)
71
65
...
66
+
```
67
+
68
+
<Notetype="warning">
69
+
<strong>Returning sensitive information from your Lambda handler or functions, where Tracer is used?</strong>
70
+
<br/><br/>
71
+
You can disable Tracer from capturing their responses as tracing metadata with <strong><code>capture_response=False</code></strong> parameter in both capture_lambda_handler and capture_method decorators.
0 commit comments