Skip to content

Commit 703d5b8

Browse files
committed
Rename.
1 parent 4b95397 commit 703d5b8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

datadog_lambda/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Config:
6969
logs_injection = _get_env("DD_LOGS_INJECTION", "true", as_bool)
7070
function_name = _get_env("AWS_LAMBDA_FUNCTION_NAME", "function")
7171
is_gov_region = _get_env("AWS_REGION", "", lambda x: x.startswith("us-gov-"))
72-
is_in_tests = _get_env("DD_INTEGRATION_TEST", "false", as_bool)
72+
integration_test = _get_env("DD_INTEGRATION_TEST", "false", as_bool)
7373
is_lambda_context = _get_env("AWS_LAMBDA_FUNCTION_NAME", None, bool)
7474
otel_enabled = _get_env("DD_TRACE_OTEL_ENABLED", "false", as_bool)
7575
telemetry_enabled = _get_env(

datadog_lambda/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _patch_for_integration_tests():
4141
Patch `requests` to log the outgoing requests for integration tests.
4242
"""
4343
global _integration_tests_patched
44-
if not _integration_tests_patched and config.is_in_tests:
44+
if not _integration_tests_patched and config.integration_test:
4545
wrap("requests", "Session.send", _log_request)
4646
_integration_tests_patched = True
4747

tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _test_as_list(env_key, conf_key, default):
6262
*_test_as_bool("DD_COLD_START_TRACING", "cold_start_tracing", default=True),
6363
*_test_as_bool("DD_FLUSH_IN_THREAD", "flush_in_thread", default=False),
6464
*_test_as_bool("DD_ENHANCED_METRICS", "enhanced_metrics_enabled", default=True),
65-
*_test_as_bool("DD_INTEGRATION_TEST", "is_in_tests", default=False),
65+
*_test_as_bool("DD_INTEGRATION_TEST", "integration_test", default=False),
6666
*_test_as_bool("DD_BOTOCORE_ADD_SPAN_POINTERS", "add_span_pointers", default=True),
6767
*_test_as_bool("DD_TRACE_OTEL_ENABLED", "otel_enabled", default=False),
6868
*_test_as_bool(

0 commit comments

Comments
 (0)