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
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,7 @@ def handler(event, context):
71
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.
# Disables Tracer from capturing response and adding as metadata
76
77
# Useful when dealing with sensitive data
@@ -116,6 +117,14 @@ def handler(event, context):
116
117
117
118
You can trace a synchronous function using the `capture_method`.
118
119
120
+
<Notetype="warning">
121
+
<strong>When <code>capture_response</code> is enabled, the function response will be read and serialized as json.</strong>
122
+
<br/><br/>
123
+
The serialization is performed by the aws-xray-sdk which uses the <code>jsonpickle</code> module. This can cause
124
+
unintended consequences if there are side effects to recursively reading the returned value, for example if the
125
+
decorated function response contains a file-like object or a <ahref="https://botocore.amazonaws.com/v1/documentation/api/latest/reference/response.html#botocore.response.StreamingBody"><code>StreamingBody</code></a> for S3 objects.
0 commit comments