open-telemetry / opentelemetry-cpp

The OpenTelemetry C++ Client
https://opentelemetry.io/
Apache License 2.0
890 stars 423 forks source link

[BUILD] Enable SSL for curl in bazel build environment #2489

Open marcalff opened 10 months ago

marcalff commented 10 months ago

Initialy reported in PR #2415

When building with bazel, CURL is not compiled with SSL.

The following need to be fixed:

github-actions[bot] commented 9 months ago

This issue is available for anyone to work on. Make sure to reference this issue in your pull request. :sparkles: Thank you for your contribution! :sparkles:

github-actions[bot] commented 7 months ago

This issue was marked as stale due to lack of activity.

bardabun commented 1 month ago

I'm experiencing a very similar issue when using the opentelemetry-cpp library to send logs via HTTPS. I receive the following error when trying to use an HTTPS endpoint:

[Error] File: ext/src/http/client/curl/http_operation_curl.cc:546 CURL, set option <32> failed: <A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.

It seems that libcurl being used does not have SSL/TLS support, which is causing the failure for HTTPS connections. This exact issue happens even when HTTPS is fully supported on my system for other applications.

It would be great to raise the priority of this bug, as HTTPS support is essential for many use cases, and HTTP works without issues.

Thank you!