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

Fix Prometheus target name #1820

Merged
merged 2 commits into from
Nov 29, 2022

Conversation

lalitb
Copy link
Member

@lalitb lalitb commented Nov 29, 2022

Fixes #1819

Changes

Revert back the target name for Prometheus in otel-cpp cmake config.

This is incorrect in the latest release, probably we have to plan next release bit sooner, let's discuss in community meeting.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

Copy link
Member

@owent owent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lalitb lalitb enabled auto-merge (squash) November 29, 2022 06:56
@codecov
Copy link

codecov bot commented Nov 29, 2022

Codecov Report

Merging #1820 (a4c018e) into main (308ec88) will increase coverage by 0.06%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1820      +/-   ##
==========================================
+ Coverage   85.71%   85.77%   +0.06%     
==========================================
  Files         171      171              
  Lines        5240     5240              
==========================================
+ Hits         4491     4494       +3     
+ Misses        749      746       -3     
Impacted Files Coverage Δ
...include/opentelemetry/sdk/common/circular_buffer.h 98.00% <0.00%> (-2.00%) ⬇️
sdk/src/trace/batch_span_processor.cc 91.41% <0.00%> (+0.79%) ⬆️
ext/src/http/client/curl/http_client_curl.cc 81.44% <0.00%> (+1.14%) ⬆️

@lalitb lalitb merged commit 33d244a into open-telemetry:main Nov 29, 2022
@ThomsonTan
Copy link
Contributor

What's the impact of incorrect target name? And wondering should we delay pushing 1.8.0 to package managers?

@lalitb
Copy link
Member Author

lalitb commented Nov 29, 2022

What's the impact of incorrect target name? And wondering should we delay pushing 1.8.0 to package managers?

For vcpkg, it should be fine to push it with WITH_PROMETHEUS=OFF, and can be enabled in next release. There is no breaking change for vcpkg as we never pushed metrics in that.

@ThomsonTan
Copy link
Contributor

What's the impact of incorrect target name? And wondering should we delay pushing 1.8.0 to package managers?

For vcpkg, it should be fine to push it with WITH_PROMETHEUS=OFF, and can be enabled in next release. There is no breaking change for vcpkg as we never pushed metrics in that, so it sounds like a breaking change there.

We cannot just set WITH_PROMETHEUS=OFF in vcpkg as we produce a sub-package with prometheus like below the user can install.

opentelemetry-cpp[prometheus] Whether to include the Prometheus Client in the SDK

@lalitb
Copy link
Member Author

lalitb commented Nov 30, 2022

We cannot just set WITH_PROMETHEUS=OFF in vcpkg as we produce a sub-package with prometheus like below the user can install.

This is old Prometheus sub-package, which is has different target name ( with deprecated keyword) ?
Can we disable this package generation for v1..8.0, and enable for new Prometheus in v1.9.0 ?

yxue pushed a commit to yxue/opentelemetry-cpp that referenced this pull request Dec 5, 2022
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.

Installed target name of prometheus export changes in v1.8.0
3 participants