diff --git a/cmd/otelcol/config/collector/ecs_ec2_config.yaml b/cmd/otelcol/config/collector/ecs_ec2_config.yaml index f2d7b18372..f0ff06cd34 100644 --- a/cmd/otelcol/config/collector/ecs_ec2_config.yaml +++ b/cmd/otelcol/config/collector/ecs_ec2_config.yaml @@ -110,7 +110,7 @@ processors: exporters: # Traces otlphttp: - traces_endpoint: "${SPLUNK_TRACE_URL}" + traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp" headers: "X-SF-Token": "${SPLUNK_ACCESS_TOKEN}" # Metrics + Events diff --git a/cmd/otelcol/config/collector/fargate_config.yaml b/cmd/otelcol/config/collector/fargate_config.yaml index fcb05f5c8e..cd7db50c7e 100644 --- a/cmd/otelcol/config/collector/fargate_config.yaml +++ b/cmd/otelcol/config/collector/fargate_config.yaml @@ -93,7 +93,7 @@ processors: exporters: # Traces otlphttp: - traces_endpoint: "${SPLUNK_TRACE_URL}" + traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp" headers: "X-SF-Token": "${SPLUNK_ACCESS_TOKEN}" # Metrics + Events diff --git a/cmd/otelcol/config/collector/gateway_config.yaml b/cmd/otelcol/config/collector/gateway_config.yaml index 488eee23de..a3a92e1ae2 100644 --- a/cmd/otelcol/config/collector/gateway_config.yaml +++ b/cmd/otelcol/config/collector/gateway_config.yaml @@ -92,7 +92,7 @@ processors: exporters: # Traces otlphttp: - traces_endpoint: "${SPLUNK_TRACE_URL}" + traces_endpoint: "${SPLUNK_INGEST_URL}/v2/trace/otlp" headers: "X-SF-Token": "${SPLUNK_ACCESS_TOKEN}" # Metrics + Events diff --git a/internal/settings/settings_test.go b/internal/settings/settings_test.go index 725628acff..1d36a4f1b7 100644 --- a/internal/settings/settings_test.go +++ b/internal/settings/settings_test.go @@ -269,7 +269,7 @@ func TestSetDefaultEnvVarsSetsURLsFromRealm(t *testing.T) { expectedEnvVars := [][]string{ {"SPLUNK_API_URL", fmt.Sprintf("https://api.%s.signalfx.com", realm)}, {"SPLUNK_INGEST_URL", fmt.Sprintf("https://ingest.%s.signalfx.com", realm)}, - {"SPLUNK_TRACE_URL", fmt.Sprintf("https://ingest.%s.signalfx.com/v2/trace/otlp", realm)}, + {"SPLUNK_TRACE_URL", fmt.Sprintf("https://ingest.%s.signalfx.com/v2/trace", realm)}, {"SPLUNK_HEC_URL", fmt.Sprintf("https://ingest.%s.signalfx.com/v1/log", realm)}, } for _, v := range expectedEnvVars {