-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[exporter/datadog] Error returned from authAPI.Validate is not propagated #33935
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@RonFed This is intentional and mimics the behavior of the Datadog Agent. To propagate the error you can set |
@mx-psi I have tried this config but it still causes the error to not get propagated, since the function above is not returning it, it doesn't get sent in the error channel and the check for the configuration you proposed is not catching it in opentelemetry-collector-contrib/exporter/datadogexporter/traces_exporter.go Lines 70 to 90 in 0385b21
|
I am taking a look at this. I filed #33944 but I am a bit confused as to why the endpoint would be returning 403 for something that should not need authentication, so I am checking internally as well :) |
This will be fixed in v0.105.0, thanks for taking the time to report it! |
Component(s)
exporter/datadog
What happened?
Description
The error returned from
Validate
is not returned. I'm not sure if this is intentional or not. From debugging this and entering an invalid API key I see an error of403 forbidden
is returned but only logged.opentelemetry-collector-contrib/exporter/datadogexporter/internal/clientutil/api.go
Lines 39 to 53 in 6ff2a8a
Collector version
v0.104.0
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: