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
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -65,12 +65,16 @@ def handler(event, context):
65
65
...
66
66
```
67
67
68
+
### disabling response auto-capture
69
+
70
+
> New in 1.9.0
71
+
68
72
<Notetype="warning">
69
73
<strong>Returning sensitive information from your Lambda handler or functions, where Tracer is used?</strong>
70
74
<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.
72
75
</Note><br/>
73
76
77
+
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.
# Disables Tracer from capturing response and adding as metadata
@@ -80,6 +84,25 @@ def handler(event, context):
80
84
return"sensitive_information"
81
85
```
82
86
87
+
### disabling exception auto-capture
88
+
89
+
> New in 1.10.0
90
+
91
+
<Notetype="warning">
92
+
<strong>Can exceptions contain sensitive information from your Lambda handler or functions, where Tracer is used?</strong>
93
+
<br/><br/>
94
+
</Note><br/>
95
+
96
+
You can disable Tracer from capturing their exceptions as tracing metadata with <strong><code>capture_error=False</code></strong> parameter in both capture_lambda_handler and capture_method decorators.
raiseValueError("some sensitive info in the stack trace...")
104
+
```
105
+
83
106
### Annotations
84
107
85
108
Annotations are key-values indexed by AWS X-Ray on a per trace basis. You can use them to filter traces as well as to create [Trace Groups](https://aws.amazon.com/about-aws/whats-new/2018/11/aws-xray-adds-the-ability-to-group-traces/).
0 commit comments