Conversation
|
Thanks for this, and for asking on the issue first. Two things I checked that I think are right, and one question. The guard in Moving the The question. On One overlap to be aware of rather than to act on. #4406 makes the client survive without a multi handle from the other direction, where Small thing: "a private constructor to to simulate" in the header has a doubled "to". |
4f17cbf to
d2805e3
Compare
Ensure HttpCurlGlobalInitializer checks the return value of
curl_global_init. If initialization fails, log an error, avoid calling curl_global_cleanup, and cause HttpClient and HttpClientSync to report
SessionState::CreateFailed.
Fixes open-telemetry#4434
Signed-off-by: Varun <v08pandey@gmail.com>
d2805e3 to
2c5efd2
Compare
|
Thank you so much for the thorough review and insights :)
|
|
All three are done, and I checked each rather than taking the summary for it. The guard comment says the thing that matters, that the early return happens before Worth flagging separately, because you cannot see it from your side and it is not something you did wrong: no CI has run on
So the pull request is not being ignored, it is unevaluated. @marcalff or @lalitb, could one of you approve the workflow run on this one? The change is small, EasyCLA has passed, and it closes #4434. |
|
The workflows ran, and the 31 red checks are one compile error rather than 31 problems. It is a one line fix and you could not have hit it locally, which I will explain. CI reports this: That is the second error, not the first. Reproducing it locally gives both: The macro is not declared, so the compiler reads Why it is not declared: the include sits inside the #ifdef ENABLE_OTLP_COMPRESSION_PREVIEW
...
#else
# include "opentelemetry/sdk/common/global_log_handler.h"
#endifThe one log call that existed before yours is at line 217, inside the same Moving the include out of the #ifdef ENABLE_OTLP_COMPRESSION_PREVIEW
...
#endif
#include "opentelemetry/sdk/common/global_log_handler.h"Measured on your branch, building
And why your local build was green: compression preview is off by default, which is the half that already had the header. A single local configuration cannot see this one. The three IWYU jobs and the two clang-tidy jobs are red for the same reason, since neither tool can run on a translation unit that does not compile, though I would not promise they all clear until CI says so. Sorry this cost you a round trip. The guard is genuinely easy to miss and it has caught me in this same file before. |
Fixes #4434.
initialization failure.