You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use both opentelemetry::api and opentelemetry::http_client_curl at the same time.
What is the actual behavior?
Additional context
When building opentelemetry_ext, we should link opentelemetry_ext with opentelemetry_api to import all definitions of opentelemetry_api.Without it the opentelemetry_ext will be built without std::string_view , abseil-cpp and etc. But when we use both opentelemetry_ext and other components together, it will use std::string_view , abseil-cpp and etc when compiler support them.
The text was updated successfully, but these errors were encountered:
I'm not sure why unit test didn't find this problem.
The test ext.http.curl.curl_http_test only links opentelemetry_http_client_curl and opentelemetry_http_client_curl only links opentelemetry_ext. I also checked the flags to compiling opentelemetry_http_client_curl and didn't find HAVE_CPP_STDLIB or HAVE_ABSEIL. This problem should already be tested but it didn't crash on CI.
Maybe it's related to my compiler and STD library.(clang 14.0.1 with -stdlib=libc++)
Describe your environment
OS: Linux
Version: v1.3.0
Build System: cmake
Steps to reproduce
Use both
opentelemetry::api
andopentelemetry::http_client_curl
at the same time.What is the actual behavior?
Additional context
When building
opentelemetry_ext
, we should linkopentelemetry_ext
withopentelemetry_api
to import all definitions ofopentelemetry_api
.Without it theopentelemetry_ext
will be built withoutstd::string_view
,abseil-cpp
and etc. But when we use bothopentelemetry_ext
and other components together, it will usestd::string_view
,abseil-cpp
and etc when compiler support them.The text was updated successfully, but these errors were encountered: