From 800536a4fd7a4447a5e9eb05917dda78794674f4 Mon Sep 17 00:00:00 2001 From: Ajay Sreehari Date: Wed, 11 Dec 2024 10:48:59 -0800 Subject: [PATCH] update test to match endpoint --- cmd/otelcol/config/collector/ecs_ec2_config.yaml | 2 +- cmd/otelcol/config/collector/fargate_config.yaml | 2 +- cmd/otelcol/config/collector/gateway_config.yaml | 2 +- internal/settings/settings_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 {