Skip to content

Commit 3a2210a

Browse files
authored
New ingest domains wired up to realm. (#2692)
* use the new domains for ingest * spotless
1 parent 7e55081 commit 3a2210a

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

custom/src/main/java/com/splunk/opentelemetry/SplunkConfiguration.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,25 @@ Map<String, String> customize(ConfigProperties config) {
6969
customized,
7070
config,
7171
"otel.exporter.otlp.endpoint",
72-
"https://ingest." + realm + ".signalfx.com");
72+
"https://ingest." + realm + ".observability.splunkcloud.com");
7373

7474
// metrics ingest doesn't currently accept grpc
7575
addIfAbsent(customized, config, "otel.exporter.otlp.metrics.protocol", "http/protobuf");
7676
addIfAbsent(
7777
customized,
7878
config,
7979
"otel.exporter.otlp.metrics.endpoint",
80-
"https://ingest." + realm + ".signalfx.com/v2/datapoint/otlp");
80+
"https://ingest." + realm + ".observability.splunkcloud.com/v2/datapoint/otlp");
8181

8282
if (config.getString("otel.exporter.otlp.logs.endpoint") == null) {
8383
String logsEndpoint = getDefaultLogsEndpoint(config);
8484
logger.log(
8585
WARNING,
8686
"Logs can not be sent to {0}, using {1} instead. "
8787
+ "You can override it by setting otel.exporter.otlp.logs.endpoint",
88-
new Object[] {"https://ingest." + realm + ".signalfx.com", logsEndpoint});
88+
new Object[] {
89+
"https://ingest." + realm + ".observability.splunkcloud.com", logsEndpoint
90+
});
8991

9092
addIfAbsent(customized, config, "otel.exporter.otlp.logs.endpoint", logsEndpoint);
9193
}

custom/src/test/java/com/splunk/opentelemetry/SplunkConfigurationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ void usesLocalIngestIfRealmIsNone() {
4949
void realmIsNotHardcoded() {
5050
var config = configuration(() -> Map.of(SplunkConfiguration.SPLUNK_REALM_PROPERTY, "test1"));
5151

52-
assertThat(config.getString(OTLP_ENDPOINT)).isEqualTo("https://ingest.test1.signalfx.com");
52+
assertThat(config.getString(OTLP_ENDPOINT))
53+
.isEqualTo("https://ingest.test1.observability.splunkcloud.com");
5354
}
5455

5556
@Test

profiler/src/main/java/com/splunk/opentelemetry/profiler/ProfilerEnvVarsConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public String getIngestUrl() {
103103
String defaultIngestUrl = getDefaultLogsEndpoint();
104104
ingestUrl = config.getString(CONFIG_KEY_OTEL_OTLP_URL, defaultIngestUrl);
105105

106-
if (ingestUrl.startsWith("https://ingest.") && ingestUrl.endsWith(".signalfx.com")) {
106+
if (ingestUrl.startsWith("https://ingest.")
107+
&& ingestUrl.endsWith(".observability.splunkcloud.com")) {
107108
logger.log(
108109
WARNING,
109110
"Profiling data can not be sent to {0}, using {1} instead. "

profiler/src/test/java/com/splunk/opentelemetry/profiler/ProfilerEnvVarsConfigurationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void getIngestUrlSplunkRealm() {
120120
ProfilerEnvVarsConfiguration profilerConfiguration = new ProfilerEnvVarsConfiguration(config);
121121
when(config.getString(ProfilerEnvVarsConfiguration.CONFIG_KEY_INGEST_URL)).thenReturn(null);
122122
when(config.getString(eq(ProfilerEnvVarsConfiguration.CONFIG_KEY_OTEL_OTLP_URL), anyString()))
123-
.thenReturn("https://ingest.us0.signalfx.com");
123+
.thenReturn("https://ingest.us0.observability.splunkcloud.com");
124124
when(config.getString(
125125
eq(ProfilerEnvVarsConfiguration.CONFIG_KEY_PROFILER_OTLP_PROTOCOL), any()))
126126
.thenReturn("http/protobuf");

0 commit comments

Comments
 (0)