From 3c0cbd7307e6f47904558eb07e24888333ab786d Mon Sep 17 00:00:00 2001 From: Nikita Tkachenko <121111529+nikita-tkachenko-datadog@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:48:28 +0200 Subject: [PATCH] Update test session environment variable name (#7640) --- .../java/datadog/trace/api/config/CiVisibilityConfig.java | 2 +- internal-api/src/main/java/datadog/trace/api/Config.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dd-trace-api/src/main/java/datadog/trace/api/config/CiVisibilityConfig.java b/dd-trace-api/src/main/java/datadog/trace/api/config/CiVisibilityConfig.java index 2df3062a480..248bf228ab1 100644 --- a/dd-trace-api/src/main/java/datadog/trace/api/config/CiVisibilityConfig.java +++ b/dd-trace-api/src/main/java/datadog/trace/api/config/CiVisibilityConfig.java @@ -87,7 +87,7 @@ public final class CiVisibilityConfig { "civisibility.jacoco.plugin.version"; public static final String CIVISIBILITY_GRADLE_SOURCE_SETS = "civisibility.gradle.sourcesets"; - public static final String SESSION_NAME = "session.name"; + public static final String TEST_SESSION_NAME = "test.session.name"; private CiVisibilityConfig() {} } diff --git a/internal-api/src/main/java/datadog/trace/api/Config.java b/internal-api/src/main/java/datadog/trace/api/Config.java index 4c9eca39428..f6388e42945 100644 --- a/internal-api/src/main/java/datadog/trace/api/Config.java +++ b/internal-api/src/main/java/datadog/trace/api/Config.java @@ -214,7 +214,7 @@ import static datadog.trace.api.config.CiVisibilityConfig.CIVISIBILITY_TEST_SKIPPING_ENABLED; import static datadog.trace.api.config.CiVisibilityConfig.CIVISIBILITY_TOTAL_FLAKY_RETRY_COUNT; import static datadog.trace.api.config.CiVisibilityConfig.CIVISIBILITY_TRACE_SANITATION_ENABLED; -import static datadog.trace.api.config.CiVisibilityConfig.SESSION_NAME; +import static datadog.trace.api.config.CiVisibilityConfig.TEST_SESSION_NAME; import static datadog.trace.api.config.CrashTrackingConfig.CRASH_TRACKING_AGENTLESS; import static datadog.trace.api.config.CrashTrackingConfig.CRASH_TRACKING_AGENTLESS_DEFAULT; import static datadog.trace.api.config.CrashTrackingConfig.CRASH_TRACKING_TAGS; @@ -1908,7 +1908,7 @@ PROFILING_DATADOG_PROFILER_ENABLED, isDatadogProfilerSafeInCurrentEnvironment()) ciVisibilityFlakyRetryCount = configProvider.getInteger(CIVISIBILITY_FLAKY_RETRY_COUNT, 5); ciVisibilityTotalFlakyRetryCount = configProvider.getInteger(CIVISIBILITY_TOTAL_FLAKY_RETRY_COUNT, 1000); - ciVisibilitySessionName = configProvider.getString(SESSION_NAME); + ciVisibilitySessionName = configProvider.getString(TEST_SESSION_NAME); ciVisibilityModuleName = configProvider.getString(CIVISIBILITY_MODULE_NAME); ciVisibilityTestCommand = configProvider.getString(CIVISIBILITY_TEST_COMMAND); ciVisibilityTelemetryEnabled = configProvider.getBoolean(CIVISIBILITY_TELEMETRY_ENABLED, true);