Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access_token_passthrough errors since v0.114 #36796

Closed
crisand2 opened this issue Dec 12, 2024 · 2 comments
Closed

access_token_passthrough errors since v0.114 #36796

crisand2 opened this issue Dec 12, 2024 · 2 comments
Labels
exporter/sapm help wanted Extra attention is needed unmaintained Identifies issues/prs for unmaintained components

Comments

@crisand2
Copy link

Component(s)

exporter/sapm

Details

Hey, I have some issues regarding the sapm exporter.

My config:

sapm:
    endpoint: "${SPLUNK_LISTEN_INTERFACE}:7276"
    access_token_passthrough: true

Error (similarly seen in journalctl, this is from otelbin.io):

The provided configuration is invalid - 2024/12/12 09:31:41 settings.go:478: Set config to [/tmp/config.yaml] 2024/12/12 09:31:41 settings.go:539: Set memory limit to 460 MiB 2024/12/12 09:31:41 settings.go:524: Set soft memory limit set to 460 MiB 2024/12/12 09:31:41 settings.go:373: Set garbage collection target percentage (GOGC) to 400 2024/12/12 09:31:41 settings.go:414: set "SPLUNK_LISTEN_INTERFACE" to "0.0.0.0" Error: failed to get config: cannot unmarshal the configuration: decoding failed due to the following error(s): error decoding 'receivers': error reading configuration for "sapm": decoding failed due to the following error(s): '' has invalid keys: access_token_passthrough 2024/12/12 09:31:41 main.go:92: application run finished with error: failed to get config: cannot unmarshal the configuration: decoding failed due to the following error(s): error decoding 'receivers': error reading configuration for "sapm": decoding failed due to the following error(s): '' has invalid keys: access_token_passthrough

New (working) config:

sapm:
    endpoint: "${SPLUNK_LISTEN_INTERFACE}:7276"

README seems to be outdated / other issues behind?

Thanks,
Darius

@crisand2 crisand2 added help wanted Extra attention is needed unmaintained Identifies issues/prs for unmaintained components labels Dec 12, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@atoulme
Copy link
Contributor

atoulme commented Jan 18, 2025

This is as expected. See the release notes of 0.113.0:
https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/tag/v0.113.0

sapmreceiver: Remove the deprecated access_token_passthrough from SAPM receiver. (#35972)
Please use include_metadata instead with the following config option applied to the batch processor:
batch:
metadata_keys: [X-Sf-Token]

@atoulme atoulme closed this as completed Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/sapm help wanted Extra attention is needed unmaintained Identifies issues/prs for unmaintained components
Projects
None yet
Development

No branches or pull requests

2 participants