-
Notifications
You must be signed in to change notification settings - Fork 446
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
[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 <[email protected]>
Signed-off-by: WenTao Ou <[email protected]>
Signed-off-by: WenTao Ou <[email protected]>
Signed-off-by: WenTao Ou <[email protected]>
Signed-off-by: owent <[email protected]>
Signed-off-by: owent <[email protected]>
if(WITH_OTLP_GRPC) | ||
if(WITH_ABSEIL) | ||
find_package(absl CONFIG) | ||
if(TARGET absl::synchronization) |
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.
Is the target absl::synchronization
optional, or error out if it doesn't exist?
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious the motive of this change - was there any build error with WITH_ABSEIL?
cmake/opentelemetry-proto.cmake
Outdated
list(APPEND OTELCPP_PROTO_TARGET_OPTIONS STATIC) | ||
endif() | ||
|
||
list(APPEND OTELCPP_PROTO_TARGET_OPTIONS) |
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.
Not sure if I am missing something, but how are we using OTELCPP_PROTO_TARGET_OPTIONS
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.
Sorry, it's a mistake after merging.
@owent As I understand, this PR adds two new shared libs - |
…ing. Signed-off-by: owent <[email protected]>
Spliting |
CHANGELOG.md
Outdated
@@ -19,6 +19,8 @@ Increment the: | |||
[#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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious the motive of this change - was there any build error with WITH_ABSEIL?
Signed-off-by: owent <[email protected]>
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
Signed-off-by: owent <[email protected]>
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 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_proto
on non-Windows platform.opentelemetry_proto_grpc
which 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_2096
branch into my fork.For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes