Skip to content

Commit 22d4438

Browse files
update trace endpoint for sapm
1 parent 1df9f57 commit 22d4438

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
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"),

tests/zeroconfig/windows/testdata/Dockerfile.iis.server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ENV ACCESS_TOKEN_TMP=$access_token
2424
RUN `
2525
$token = $Env:ACCESS_TOKEN_TMP; `
2626
$collector_msi_path = (dir "c:\setup\splunk-otel-collector-*.msi").FullName; `
27-
c:\setup\install.ps1 -access_token $token -msi_path $collector_msi_path -with_dotnet_instrumentation $true -deployment_env zc-iis-test -ingest_url "http://splunk-otel-collector:9943" -trace_url "http://splunk-otel-collector:7276/v2/trace" -network_interface "0.0.0.0"
27+
c:\setup\install.ps1 -access_token $token -msi_path $collector_msi_path -with_dotnet_instrumentation $true -deployment_env zc-iis-test -ingest_url "http://splunk-otel-collector:9943" -trace_url "http://splunk-otel-collector:7276/v2/trace/otlp" -network_interface "0.0.0.0"
2828
ENV ACCESS_TOKEN_TMP=
2929

3030
COPY apps/bin/aspnetfxapp/_PublishedWebsites/AspNet.WebApi.NetFramework/ /apps/aspnetfx

0 commit comments

Comments
 (0)