diff --git a/custom/src/main/java/com/splunk/opentelemetry/SplunkConfiguration.java b/custom/src/main/java/com/splunk/opentelemetry/SplunkConfiguration.java index f2a7479c0..16e730559 100644 --- a/custom/src/main/java/com/splunk/opentelemetry/SplunkConfiguration.java +++ b/custom/src/main/java/com/splunk/opentelemetry/SplunkConfiguration.java @@ -69,7 +69,7 @@ Map customize(ConfigProperties config) { customized, config, "otel.exporter.otlp.endpoint", - "https://ingest." + realm + ".signalfx.com"); + "https://ingest." + realm + ".observability.splunkcloud.com"); // metrics ingest doesn't currently accept grpc addIfAbsent(customized, config, "otel.exporter.otlp.metrics.protocol", "http/protobuf"); @@ -77,7 +77,7 @@ Map customize(ConfigProperties config) { customized, config, "otel.exporter.otlp.metrics.endpoint", - "https://ingest." + realm + ".signalfx.com/v2/datapoint/otlp"); + "https://ingest." + realm + ".observability.splunkcloud.com/v2/datapoint/otlp"); if (config.getString("otel.exporter.otlp.logs.endpoint") == null) { String logsEndpoint = getDefaultLogsEndpoint(config); @@ -85,7 +85,9 @@ Map customize(ConfigProperties config) { WARNING, "Logs can not be sent to {0}, using {1} instead. " + "You can override it by setting otel.exporter.otlp.logs.endpoint", - new Object[] {"https://ingest." + realm + ".signalfx.com", logsEndpoint}); + new Object[] { + "https://ingest." + realm + ".observability.splunkcloud.com", logsEndpoint + }); addIfAbsent(customized, config, "otel.exporter.otlp.logs.endpoint", logsEndpoint); } diff --git a/custom/src/test/java/com/splunk/opentelemetry/SplunkConfigurationTest.java b/custom/src/test/java/com/splunk/opentelemetry/SplunkConfigurationTest.java index 2ef423545..8e20804b2 100644 --- a/custom/src/test/java/com/splunk/opentelemetry/SplunkConfigurationTest.java +++ b/custom/src/test/java/com/splunk/opentelemetry/SplunkConfigurationTest.java @@ -49,7 +49,8 @@ void usesLocalIngestIfRealmIsNone() { void realmIsNotHardcoded() { var config = configuration(() -> Map.of(SplunkConfiguration.SPLUNK_REALM_PROPERTY, "test1")); - assertThat(config.getString(OTLP_ENDPOINT)).isEqualTo("https://ingest.test1.signalfx.com"); + assertThat(config.getString(OTLP_ENDPOINT)) + .isEqualTo("https://ingest.test1.observability.splunkcloud.com"); } @Test diff --git a/profiler/src/main/java/com/splunk/opentelemetry/profiler/ProfilerEnvVarsConfiguration.java b/profiler/src/main/java/com/splunk/opentelemetry/profiler/ProfilerEnvVarsConfiguration.java index 139e2f1c1..ca7b1d21c 100644 --- a/profiler/src/main/java/com/splunk/opentelemetry/profiler/ProfilerEnvVarsConfiguration.java +++ b/profiler/src/main/java/com/splunk/opentelemetry/profiler/ProfilerEnvVarsConfiguration.java @@ -103,7 +103,8 @@ public String getIngestUrl() { String defaultIngestUrl = getDefaultLogsEndpoint(); ingestUrl = config.getString(CONFIG_KEY_OTEL_OTLP_URL, defaultIngestUrl); - if (ingestUrl.startsWith("https://ingest.") && ingestUrl.endsWith(".signalfx.com")) { + if (ingestUrl.startsWith("https://ingest.") + && ingestUrl.endsWith(".observability.splunkcloud.com")) { logger.log( WARNING, "Profiling data can not be sent to {0}, using {1} instead. " diff --git a/profiler/src/test/java/com/splunk/opentelemetry/profiler/ProfilerEnvVarsConfigurationTest.java b/profiler/src/test/java/com/splunk/opentelemetry/profiler/ProfilerEnvVarsConfigurationTest.java index 452d80c41..ff397b48b 100644 --- a/profiler/src/test/java/com/splunk/opentelemetry/profiler/ProfilerEnvVarsConfigurationTest.java +++ b/profiler/src/test/java/com/splunk/opentelemetry/profiler/ProfilerEnvVarsConfigurationTest.java @@ -120,7 +120,7 @@ void getIngestUrlSplunkRealm() { ProfilerEnvVarsConfiguration profilerConfiguration = new ProfilerEnvVarsConfiguration(config); when(config.getString(ProfilerEnvVarsConfiguration.CONFIG_KEY_INGEST_URL)).thenReturn(null); when(config.getString(eq(ProfilerEnvVarsConfiguration.CONFIG_KEY_OTEL_OTLP_URL), anyString())) - .thenReturn("https://ingest.us0.signalfx.com"); + .thenReturn("https://ingest.us0.observability.splunkcloud.com"); when(config.getString( eq(ProfilerEnvVarsConfiguration.CONFIG_KEY_PROFILER_OTLP_PROTOCOL), any())) .thenReturn("http/protobuf");