Skip to content

Commit a4b9c9d

Browse files
committed
Remove unneded monkeypatch.
1 parent 5cc6f51 commit a4b9c9d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

datadog_lambda/wrapper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
extract_http_status_code_tag,
4747
)
4848

49+
# ddtrace imports are also tested in
50+
# dd-trace-py/tests/internal/test_serverless.py please update those tests when
51+
# making changes to any ddtrace import.
52+
4953
if config.appsec_enabled:
5054
from datadog_lambda.asm import (
5155
asm_set_context,

tests/test_wrapper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,6 @@ def LLMObs_flush(*args, **kwargs):
882882
LLMObs_flush_calls.append((args, kwargs))
883883
return original_LLMObs_flush(*args, **kwargs)
884884

885-
monkeypatch.setattr("datadog_lambda.wrapper.is_new_sandbox", lambda: True)
886885
monkeypatch.setattr("datadog_lambda.wrapper.LLMObs.enable", LLMObs_enable)
887886
monkeypatch.setattr("datadog_lambda.wrapper.LLMObs.flush", LLMObs_flush)
888887

0 commit comments

Comments
 (0)