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

[exporter/datadog] Run API key validation in separate goroutine #18239

Merged
merged 3 commits into from
Feb 2, 2023

Conversation

songy23
Copy link
Member

@songy23 songy23 commented Feb 1, 2023

Description:
Run API key validation on Datadog exporter in separate goroutine

More context: see #13732 and #18238

Link to tracking Issue:
Fixes #18238

@songy23 songy23 requested review from a team and mx-psi as code owners February 1, 2023 21:58
@github-actions github-actions bot added the exporter/datadog Datadog components label Feb 1, 2023
@runforesight
Copy link

runforesight bot commented Feb 1, 2023

Foresight Summary

    
Major Impacts
Foresight hasn't detected any major impact on your workflows and tests.

View More Details

 build-and-test workflow has finished in 46 minutes 42 seconds (6 minutes 37 seconds less than main branch avg.) and finished at 2nd Feb, 2023.


Job Failed Steps Tests
integration-tests N/A  N/A See Details

🔎 See details on Foresight

*You can configure Foresight comments in your organization settings page.

exporter/datadogexporter/logs_exporter.go Outdated Show resolved Hide resolved
exporter/datadogexporter/traces_exporter.go Outdated Show resolved Hide resolved
@gbbr
Copy link
Member

gbbr commented Feb 2, 2023

Run API key validation on Datadog exporter in separate goroutine

Why? Can you add more details?

@songy23
Copy link
Member Author

songy23 commented Feb 2, 2023

This issue originates from this PR: #13732 (comment). Running the API validation synchronously significantly contributes to the exporter start time (serverless environments are especially sensitive to it), and the response is not used unless config.fail_on_invalid_key is specified.

@songy23
Copy link
Member Author

songy23 commented Feb 2, 2023

This is now ready to merge :)

@mx-psi mx-psi merged commit 9811298 into open-telemetry:main Feb 2, 2023
@songy23 songy23 deleted the ddog-validation branch February 2, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/datadog Datadog components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[exporter/datadog] Error while validaing API key: i/o timeout in serverless
4 participants