Skip to content
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] Add abi_version_no bazel flag. #3020

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Conversation

BYVoid
Copy link
Contributor

@BYVoid BYVoid commented Aug 6, 2024

Fixes #3019

Changes

This change allows Bazel users to change the OPENTELEMETRY_ABI_VERSION_NO.

To specify the OPENTELEMETRY_ABI_VERSION_NO in a client project, simply add build --@opentelemetry-cpp//api:abi_version_no=2 in the .bazelrc.

@BYVoid BYVoid requested a review from a team August 6, 2024 14:40
@marcalff
Copy link
Member

marcalff commented Aug 6, 2024

@keith Please take a look (Bazel)

Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.60%. Comparing base (497eaf4) to head (9170db2).
Report is 112 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3020      +/-   ##
==========================================
+ Coverage   87.12%   87.60%   +0.49%     
==========================================
  Files         200      190      -10     
  Lines        6109     5870     -239     
==========================================
- Hits         5322     5142     -180     
+ Misses        787      728      -59     

see 122 files with indirect coverage changes

api/BUILD Show resolved Hide resolved
Copy link
Member

@marcalff marcalff left a 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.

@marcalff marcalff changed the title Add abi_version_no bazel flag. [BUILD] Add abi_version_no bazel flag. Aug 6, 2024
@marcalff marcalff merged commit 7c6b9db into open-telemetry:main Aug 6, 2024
52 checks passed
msiddhu added a commit to msiddhu/opentelemetry-cpp that referenced this pull request Aug 20, 2024
* [EXPORTER] Ignore exception when create thread in OTLP file exporter. (open-telemetry#3012)

* [BUILD] Update MODULE.bazel (open-telemetry#3015)

* [BUILD] Fix build without vcpkg on Windows when gRPC is disabled (open-telemetry#3016)

* [BUILD] Add abi_version_no bazel flag. (open-telemetry#3020)

* [Code health] Expand iwyu coverage to include unit tests. (open-telemetry#3022)

* [BUILD] Version opentelemetry_proto/proto_grpc shared libraries (open-telemetry#2992)

* [SEMANTIC CONVENTIONS] Upgrade semantic conventions to 1.27.0 (open-telemetry#3023)

* [SDK] Support empty histogram buckets (open-telemetry#3027)

* support empty buckets

* Update histogram_test.cc

* Update histogram_test.cc

* test for negative values

* fix count

* [TEST] Fix sync problems in OTLP File exporter tests. (open-telemetry#3031)

---------

Co-authored-by: WenTao Ou <owentou@tencent.com>
Co-authored-by: Carbo Kuo <BYVoid@users.noreply.github.com>
Co-authored-by: Manuel Bergler <m.bergler@tum.de>
Co-authored-by: Marc Alff <marc.alff@oracle.com>
Co-authored-by: Troels Hoffmeyer <Troels.d.hoffmeyer@gmail.com>
Co-authored-by: Lalit Kumar Bhasin <lalit_fin@yahoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify OPENTELEMETRY_ABI_VERSION_NO with Bazel
4 participants