Skip to content

Metrics are obsolete#1611

Merged
cijothomas merged 3 commits into
open-telemetry:masterfrom
eddynaka:feature/metrics-are-obsolete
Nov 24, 2020
Merged

Metrics are obsolete#1611
cijothomas merged 3 commits into
open-telemetry:masterfrom
eddynaka:feature/metrics-are-obsolete

Conversation

@eddynaka

Copy link
Copy Markdown
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 November 23, 2020 21:01
@eddynaka eddynaka self-assigned this Nov 23, 2020
@codecov

codecov Bot commented Nov 23, 2020

Copy link
Copy Markdown

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

Comment thread src/OpenTelemetry.Api/CHANGELOG.md Outdated
TODO: Disable this exception, and actually do document all public API.
-->
<NoWarn>$(NoWarn),1591</NoWarn>
<NoWarn>$(NoWarn),1591,CS0618</NoWarn>

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Okay to merge once we get 2 approvals.

@alanwest alanwest left a comment

Copy link
Copy Markdown
Member

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