-
Notifications
You must be signed in to change notification settings - Fork 440
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
[SDK] Do not frequently create and destroy http client threads #3198
Conversation
✅ Deploy Preview for opentelemetry-cpp-api-docs canceled.
|
ext/include/opentelemetry/ext/http/client/curl/http_client_curl.h
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and thanks for your contribution.
ext/include/opentelemetry/ext/http/client/curl/http_client_curl.h
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the fix.
See minor comments about missing wakeupBackgroundThread(), will approve once fixed.
CI failures in functional tests are unrelated, it also fails in main. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the fix.
Fixes #3189
Changes
keep the background thread for a while and destroy only when it's free for 1 minute.
Just like the background thread in OTLP file exporter.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes