Skip to content

Commit ba226d8

Browse files
update trace endpoint for sapm
1 parent 1df9f57 commit ba226d8

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

cmd/otelcol/config/collector/agent_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ exporters:
129129
# Traces
130130
sapm:
131131
access_token: "${SPLUNK_ACCESS_TOKEN}"
132-
endpoint: "${SPLUNK_TRACE_URL}"
132+
endpoint: "${SPLUNK_INGEST_URL}/v2/trace"
133133
# Metrics + Events
134134
signalfx:
135135
access_token: "${SPLUNK_ACCESS_TOKEN}"

cmd/otelcol/fips/config/agent_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ exporters:
119119
# Traces
120120
sapm:
121121
access_token: "${SPLUNK_ACCESS_TOKEN}"
122-
endpoint: "${SPLUNK_TRACE_URL}"
122+
endpoint: "${SPLUNK_INGEST_URL}/v2/trace"
123123
# Metrics + Events
124124
signalfx:
125125
access_token: "${SPLUNK_ACCESS_TOKEN}"

tests/general/default_config_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,12 @@ func TestDefaultGatewayConfig(t *testing.T) {
6565
"num_consumers": 32,
6666
},
6767
},
68-
"otlp": map[string]any{
68+
"otlphttp": map[string]any{
6969
"headers": map[string]any{
7070
"X-SF-Token": "<redacted>",
7171
},
7272
"metrics_endpoint": "https://ingest.not.real.signalfx.com/v2/datapoint/otlp",
7373
"traces_endpoint": "https://ingest.not.real.signalfx.com/v2/trace/otlp",
74-
"sending_queue": map[string]any{
75-
"num_consumers": 32,
76-
},
7774
},
7875
"signalfx": map[string]any{
7976
"access_token": "<redacted>",

tests/msi/msi_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func assertServiceConfiguration(t *testing.T, msiProperties map[string]string) {
232232
"SPLUNK_REALM": installRealm,
233233
"SPLUNK_API_URL": optionalInstallPropertyOrDefault(msiProperties, "SPLUNK_API_URL", "https://api."+installRealm+".signalfx.com"),
234234
"SPLUNK_INGEST_URL": ingestURL,
235-
"SPLUNK_TRACE_URL": ingestURL + "/v2/trace",
235+
"SPLUNK_TRACE_URL": ingestURL + "/v2/trace/otlp",
236236
"SPLUNK_HEC_URL": ingestURL + "/v1/log",
237237
"SPLUNK_HEC_TOKEN": optionalInstallPropertyOrDefault(msiProperties, "SPLUNK_HEC_TOKEN", msiProperties["SPLUNK_ACCESS_TOKEN"]),
238238
"SPLUNK_BUNDLE_DIR": filepath.Join(programFilesDir, "Splunk", "OpenTelemetry Collector", "agent-bundle"),

0 commit comments

Comments
 (0)