From 690026b0b39260b66a21e9725a2a2611daab6965 Mon Sep 17 00:00:00 2001 From: Justin Lee Date: Thu, 12 Dec 2024 14:27:26 -0500 Subject: [PATCH] fix the smoke tests --- .../smoketest/BaseIntegrationTest.java | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/dd-smoke-tests/debugger-integration-tests/src/test/java/datadog/smoketest/BaseIntegrationTest.java b/dd-smoke-tests/debugger-integration-tests/src/test/java/datadog/smoketest/BaseIntegrationTest.java index 9d402367efc1..d366c671f48c 100644 --- a/dd-smoke-tests/debugger-integration-tests/src/test/java/datadog/smoketest/BaseIntegrationTest.java +++ b/dd-smoke-tests/debugger-integration-tests/src/test/java/datadog/smoketest/BaseIntegrationTest.java @@ -466,27 +466,18 @@ protected Configuration createConfig(LogProbe logProbe) { } protected Configuration createMetricConfig(MetricProbe metricProbe) { - return Configuration.builder() - .setService(getAppId()) - .addMetricProbes(Collections.singletonList(metricProbe)) - .build(); + return Configuration.builder().setService(getAppId()).add(metricProbe).build(); } protected Configuration createSpanDecoConfig(SpanDecorationProbe spanDecorationProbe) { - return Configuration.builder() - .setService(getAppId()) - .addSpanDecorationProbes(Collections.singletonList(spanDecorationProbe)) - .build(); + return Configuration.builder().setService(getAppId()).add(spanDecorationProbe).build(); } protected Configuration createSpanConfig(SpanProbe spanProbe) { - return Configuration.builder() - .setService(getAppId()) - .addSpanProbes(Collections.singletonList(spanProbe)) - .build(); + return Configuration.builder().setService(getAppId()).add(spanProbe).build(); } - protected Configuration createConfig(Collection logProbes) { + protected Configuration createConfig(List logProbes) { return new Configuration(getAppId(), logProbes); } @@ -496,7 +487,7 @@ protected Configuration createConfig( Configuration.FilterList denyList) { return Configuration.builder() .setService(getAppId()) - .addLogProbes(logProbes) + .add(logProbes) .addAllowList(allowList) .addDenyList(denyList) .build();