[exporter/datadog] invalid api token causes failure when using logs agent exporter #33195
Labels
bug
Something isn't working
data:logs
Logs related issues
exporter/datadog
Datadog components
needs triage
New item requiring triage
Component(s)
exporter/datadog
What happened?
Description
When the feature gate enabled for the Datadog logs agent exporter, an invalid Datadog API key will cause the collector to exit.
Requires this feature gate to be enabled:
#32327
This is the summary of what I believe is happening:
https://http-intake.logs.datadoghq.com/
This is where the error occurs. When the API key is invalid, the HTTP connection validation fails and TCP is attempted. Parsing the default endpoint of
https://http-intake.logs.datadoghq.com/
is attempted, but the code expects a<host>:<port>
format and errors due to port not being a number.Steps to Reproduce
Run collector with feature gate enabled:
Expected Result
The collector continues to run, even if log forwarding is not possible
Actual Result
The collector crashes with the included log error
Collector version
v0.100.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: