[BUILD] Allow shared opentelemetry_proto on non-Windows platform.#2097
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2097 +/- ##
==========================================
+ Coverage 87.15% 87.17% +0.03%
==========================================
Files 166 166
Lines 4777 4777
==========================================
+ Hits 4163 4164 +1
+ Misses 614 613 -1 |
Signed-off-by: WenTao Ou <admin@owent.net>
Signed-off-by: WenTao Ou <admin@owent.net>
Signed-off-by: WenTao Ou <admin@owent.net>
Signed-off-by: WenTao Ou <admin@owent.net>
Signed-off-by: owent <admin@owent.net>
Signed-off-by: owent <admin@owent.net>
| if(WITH_OTLP_GRPC) | ||
| if(WITH_ABSEIL) | ||
| find_package(absl CONFIG) | ||
| if(TARGET absl::synchronization) |
There was a problem hiding this comment.
Is the target absl::synchronization optional, or error out if it doesn't exist?
There was a problem hiding this comment.
I'm not sure if absl::synchronization can be turn off.I'm not familar with abseil-cpp.
There was a problem hiding this comment.
Just curious the motive of this change - was there any build error with WITH_ABSEIL?
| list(APPEND OTELCPP_PROTO_TARGET_OPTIONS STATIC) | ||
| endif() | ||
|
|
||
| list(APPEND OTELCPP_PROTO_TARGET_OPTIONS) |
There was a problem hiding this comment.
Not sure if I am missing something, but how are we using OTELCPP_PROTO_TARGET_OPTIONS
There was a problem hiding this comment.
Sorry, it's a mistake after merging.
|
@owent As I understand, this PR adds two new shared libs - |
…ing. Signed-off-by: owent <admin@owent.net>
Spliting |
| [#2123](https://github.com/open-telemetry/opentelemetry-cpp/pull/2123) | ||
| * [BUILD] Build break with old curl, macro CURL_VERSION_BITS unknown | ||
| [#2102](https://github.com/open-telemetry/opentelemetry-cpp/pull/2102) | ||
| * [BUILD] Allow build shared opentelemetry_proto on non-Windows platform. |
There was a problem hiding this comment.
Do you think we should mentioned this PR potential breaking change here in changelog, as we have are introducing a new library?
There was a problem hiding this comment.
Do you think we should mentioned this PR potential breaking change here in changelog, as we have are introducing a new library?
Sure, the changelog is added now.
Just curious the motive of this change - was there any build error with WITH_ABSEIL?
Yes, the related CI job is here https://github.com/open-telemetry/opentelemetry-cpp/actions/runs/4707416429/jobs/8349260349 .
| if(WITH_OTLP_GRPC) | ||
| if(WITH_ABSEIL) | ||
| find_package(absl CONFIG) | ||
| if(TARGET absl::synchronization) |
There was a problem hiding this comment.
Just curious the motive of this change - was there any build error with WITH_ABSEIL?
Signed-off-by: owent <admin@owent.net>
Signed-off-by: owent <admin@owent.net>
marcalff
left a comment
There was a problem hiding this comment.
LGTM, thanks for the fix for 2139 as well.
opentelemetry_proto on non-Windows platform.opentelemetry_proto on non-Windows platform.
Fixes #2096
Fixes #2139
Changes
Please provide a brief description of the changes here.
opentelemetry_protoon non-Windows platform.opentelemetry_proto_grpcwhich contains generated grpc files (Which depends gRPC) to make OTLP Http exporter do not depends gRPC when otel-cpp is built as dynamic libraries.Sorry for push a wrong repo by mistake before, I have moved the
fix_2096branch into my fork.For significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes