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

[Metrics SDK] Cleanup ENABLE_METRICS_PREVIEW #1735

Merged
merged 7 commits into from
Nov 6, 2022

Conversation

esigo
Copy link
Member

@esigo esigo commented Nov 5, 2022

Changes

This does cleanup as part of #1573 - remove ENABLE_METRICS_PREVIEW macro check in new metrics implementation.

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

@codecov
Copy link

codecov bot commented Nov 5, 2022

Codecov Report

Merging #1735 (05d16d4) into main (7efeeab) will decrease coverage by 0.06%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1735      +/-   ##
==========================================
- Coverage   85.79%   85.73%   -0.05%     
==========================================
  Files         171      171              
  Lines        5212     5212              
==========================================
- Hits         4471     4468       -3     
- Misses        741      744       +3     
Impacted Files Coverage Δ
.../include/opentelemetry/metrics/async_instruments.h 100.00% <ø> (ø)
api/include/opentelemetry/metrics/meter.h 100.00% <ø> (ø)
api/include/opentelemetry/metrics/meter_provider.h 100.00% <ø> (ø)
api/include/opentelemetry/metrics/noop.h 40.75% <ø> (ø)
...pi/include/opentelemetry/metrics/observer_result.h 100.00% <ø> (ø)
api/include/opentelemetry/metrics/provider.h 100.00% <ø> (ø)
...i/include/opentelemetry/metrics/sync_instruments.h 100.00% <ø> (ø)
exporters/ostream/src/metric_exporter.cc 91.81% <ø> (ø)
exporters/ostream/test/ostream_metric_test.cc 100.00% <ø> (ø)
...pentelemetry/sdk/metrics/aggregation/aggregation.h 100.00% <ø> (ø)
... and 56 more

@esigo esigo marked this pull request as ready for review November 5, 2022 13:36
@esigo esigo requested a review from a team November 5, 2022 13:36
@esigo esigo added the metrics label Nov 5, 2022
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

if(NOT WITH_METRICS_PREVIEW)
set(METRICS_EXCLUDE_PATTERN "_metrics")
endif()
set(METRICS_EXCLUDE_PATTERN "_metrics")
Copy link
Member

Choose a reason for hiding this comment

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

Once _metrics are removed (PR #1734), METRICS_EXCLUDE_PATTERN can probably be removed as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks, removed

if(NOT WITH_METRICS_PREVIEW)
set(METRICS_EXCLUDE_PATTERN "metrics")
endif()
set(METRICS_EXCLUDE_PATTERN "metrics")
Copy link
Member

Choose a reason for hiding this comment

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

we don't need this variable anymore.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks, cleaned

Copy link
Member

@lalitb lalitb 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 cleanup :)

@esigo esigo enabled auto-merge (squash) November 6, 2022 20:20
@esigo esigo merged commit b8b715f into open-telemetry:main Nov 6, 2022
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants