Skip to content

Commit

Permalink
update test to match endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
asreehari-splunk committed Dec 11, 2024
1 parent f5fcd0f commit 800536a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/otelcol/config/collector/ecs_ec2_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/otelcol/config/collector/fargate_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/otelcol/config/collector/gateway_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/settings/settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 800536a

Please sign in to comment.