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 are obsolete #1611

Merged
merged 3 commits into from
Nov 24, 2020
Merged

Metrics are obsolete #1611

merged 3 commits into from
Nov 24, 2020

Conversation

eddynaka
Copy link
Contributor

Fixes #1370.

Changes

Please provide a brief description of the changes here.

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

  • CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #
  • Changes in public API reviewed

@eddynaka eddynaka requested a review from a team as a code owner November 23, 2020 21:01
@eddynaka eddynaka self-assigned this Nov 23, 2020
@codecov
Copy link

codecov bot commented Nov 23, 2020

Codecov Report

Merging #1611 (200c56b) into master (d3edc47) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1611      +/-   ##
==========================================
- Coverage   80.61%   80.60%   -0.02%     
==========================================
  Files         242      242              
  Lines        6578     6578              
==========================================
- Hits         5303     5302       -1     
- Misses       1275     1276       +1     
Impacted Files Coverage Δ
src/OpenTelemetry.Api/Metrics/LabelSet.cs 100.00% <ø> (ø)
src/OpenTelemetry.Api/Metrics/MeasureMetric.cs 25.00% <ø> (ø)
src/OpenTelemetry.Api/Metrics/MeterFactoryBase.cs 0.00% <ø> (ø)
src/OpenTelemetry.Api/Metrics/MeterProvider.cs 100.00% <ø> (ø)
...penTelemetry.Api/Metrics/NoopBoundCounterMetric.cs 0.00% <ø> (ø)
...penTelemetry.Api/Metrics/NoopBoundMeasureMetric.cs 0.00% <ø> (ø)
src/OpenTelemetry.Api/Metrics/NoopCounterMetric.cs 14.28% <ø> (ø)
...nTelemetry.Api/Metrics/NoopDoubleObserverMetric.cs 0.00% <ø> (ø)
...etry.Api/Metrics/NoopDoubleObserverMetricHandle.cs 0.00% <ø> (ø)
...enTelemetry.Api/Metrics/NoopInt64ObserverMetric.cs 0.00% <ø> (ø)
... and 19 more

@@ -5,7 +5,7 @@
<!--
TODO: Disable this exception, and actually do document all public API.
-->
<NoWarn>$(NoWarn),1591</NoWarn>
<NoWarn>$(NoWarn),1591,CS0618</NoWarn>
Copy link
Member

Choose a reason for hiding this comment

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

Will open a new issue to move CS0618 nowarn to individual metric related files, not for whole project.

Copy link
Member

Choose a reason for hiding this comment

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

@Austin-Tan Can you work on this? (a separate PR)

Copy link
Member

Choose a reason for hiding this comment

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

Sure I'll get started right now. Would you recommend just Ctrl+F'ing the project for references to components in src/OpenTelemetry/Metrics, and appending #pragma warning disable cs0618 to the top?
And double checking my understanding - why don't we want compiler warnings? Aren't we intending to make it clear that Metrics are experimental?

Copy link
Member

Choose a reason for hiding this comment

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

Metrics are marked Obsolete so customers should be alerted. But there are pieces in this repo itself which depends on the metric, so they should be excluded from this warning.

(current its a project level warning exclusion, which will prevent us from catching any real issues, outside of metrics).

@cijothomas
Copy link
Member

Okay to merge once we get 2 approvals.

Copy link
Member

@alanwest alanwest left a comment

Choose a reason for hiding this comment

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

LGTM

@cijothomas cijothomas merged commit 2785ffb into open-telemetry:master Nov 24, 2020
@eddynaka eddynaka deleted the feature/metrics-are-obsolete branch December 2, 2020 20:11
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.

Mark metrics related API as "experimental"
4 participants