Skip to content

Commit 4e8ec15

Browse files
committed
add some debug msgs
1 parent 585e8f3 commit 4e8ec15

File tree

4 files changed

+6
-0
lines changed
  • sentry_sdk
  • tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk

4 files changed

+6
-0
lines changed

sentry_sdk/transport.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def __init__(self, options):
204204

205205
Transport.__init__(self, options)
206206
assert self.parsed_dsn is not None
207+
print("[DEBUG] setting up a BaseHttpTransport")
207208
self.options = options # type: Dict[str, Any]
208209
self._worker = BackgroundWorker(queue_size=options["transport_queue_size"])
209210
self._auth = self.parsed_dsn.to_auth("sentry.python/%s" % VERSION)
@@ -559,6 +560,8 @@ def capture_envelope(
559560
self, envelope # type: Envelope
560561
):
561562
# type: (...) -> None
563+
print("[DEBUG] capture_envelope in BaseHttpTransport")
564+
562565
def send_envelope_wrapper():
563566
# type: () -> None
564567
with capture_internal_exceptions():

tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/RaiseErrorPerformanceDisabled/index.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
dsn=os.environ.get("SENTRY_DSN"),
88
traces_sample_rate=None, # this is the default, just added for clarity
99
integrations=[AwsLambdaIntegration()],
10+
debug=True,
1011
)
1112

1213

tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/RaiseErrorPerformanceEnabled/index.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
dsn=os.environ.get("SENTRY_DSN"),
88
traces_sample_rate=1.0,
99
integrations=[AwsLambdaIntegration()],
10+
debug=True,
1011
)
1112

1213

tests/integrations/aws_lambda/lambda_functions_with_embedded_sdk/TracesSampler/index.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def trace_sampler(sampling_context):
3232
traces_sample_rate=1.0,
3333
traces_sampler=trace_sampler,
3434
integrations=[AwsLambdaIntegration()],
35+
debug=True,
3536
)
3637

3738

0 commit comments

Comments
 (0)