From 9726ba3967bc4f770f04131d50b553583e54581b Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 24 Apr 2026 15:21:24 -0400 Subject: [PATCH 1/2] [nodejs] optimize profiling tests --- utils/_context/_scenarios/profiling.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/_context/_scenarios/profiling.py b/utils/_context/_scenarios/profiling.py index 014e84af1d0..6019e8a73d5 100644 --- a/utils/_context/_scenarios/profiling.py +++ b/utils/_context/_scenarios/profiling.py @@ -27,6 +27,12 @@ def configure(self, config: pytest.Config): super().configure(config) library = self.weblog_infra.library_name + + if library == "nodejs": + self.library_interface_timeout = 10 + self.weblog_container.environment["DD_PROFILING_UPLOAD_PERIOD"] = "5" + self.weblog_container.environment["DD_PROFILING_START_FORCE_FIRST"] = "true" + if library == "dotnet": # https://docs.datadoghq.com/profiler/enabling/dotnet/?tab=linux#enabling-the-profiler self.weblog_container.environment["LD_PRELOAD"] = ( From c97d678f18cc8d1d425979396c4c8eb6c1596df4 Mon Sep 17 00:00:00 2001 From: rochdev Date: Wed, 29 Apr 2026 11:08:37 -0400 Subject: [PATCH 2/2] remove unused env var --- utils/_context/_scenarios/profiling.py | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/_context/_scenarios/profiling.py b/utils/_context/_scenarios/profiling.py index 6019e8a73d5..17ae0ed4f53 100644 --- a/utils/_context/_scenarios/profiling.py +++ b/utils/_context/_scenarios/profiling.py @@ -31,7 +31,6 @@ def configure(self, config: pytest.Config): if library == "nodejs": self.library_interface_timeout = 10 self.weblog_container.environment["DD_PROFILING_UPLOAD_PERIOD"] = "5" - self.weblog_container.environment["DD_PROFILING_START_FORCE_FIRST"] = "true" if library == "dotnet": # https://docs.datadoghq.com/profiler/enabling/dotnet/?tab=linux#enabling-the-profiler