From 3b3583aa21a8d9aa1533792ab53628e066df6525 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Thu, 13 Nov 2025 12:02:40 +0100 Subject: [PATCH] [nodejs]: increase default debugger snapshot timeout from 10ms to 1s Without this increase the tests would be flaky, as they are expecting to see a specific property with a specific value inside the collected snapshot. If the timeout occurred, that property might not be captured in the snapshot. --- utils/_context/_scenarios/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/_context/_scenarios/__init__.py b/utils/_context/_scenarios/__init__.py index c0b513a76f2..ee326e853ca 100644 --- a/utils/_context/_scenarios/__init__.py +++ b/utils/_context/_scenarios/__init__.py @@ -638,6 +638,8 @@ class _Scenarios: tracing_config_nondefault_4 = EndToEndScenario( "TRACING_CONFIG_NONDEFAULT_4", weblog_env={ + # Required by Node.js to ensure the snapshot isn't truncated due to a timeout + "DD_DYNAMIC_INSTRUMENTATION_CAPTURE_TIMEOUT_MS": "1000", "DD_DYNAMIC_INSTRUMENTATION_ENABLED": "true", "DD_DYNAMIC_INSTRUMENTATION_REDACTED_IDENTIFIERS": "customidentifier1,customidentifier2", "DD_DYNAMIC_INSTRUMENTATION_REDACTED_TYPES": "weblog.Models.Debugger.CustomPii,com.datadoghq.system_tests.springboot.CustomPii,CustomPii", # noqa: E501 @@ -683,6 +685,8 @@ class _Scenarios: debugger_pii_redaction = DebuggerScenario( "DEBUGGER_PII_REDACTION", weblog_env={ + # Required by Node.js to ensure the snapshot isn't truncated due to a timeout + "DD_DYNAMIC_INSTRUMENTATION_CAPTURE_TIMEOUT_MS": "1000", "DD_DYNAMIC_INSTRUMENTATION_ENABLED": "1", "DD_DYNAMIC_INSTRUMENTATION_REDACTED_TYPES": "weblog.Models.Debugger.CustomPii,com.datadoghq.system_tests.springboot.CustomPii,CustomPii", # noqa: E501 "DD_DYNAMIC_INSTRUMENTATION_REDACTED_IDENTIFIERS": "customidentifier1,customidentifier2",