Skip to content

Rename Kind from the api/metric package#1240

Merged
MrAlias merged 11 commits intoopen-telemetry:masterfrom
MrAlias:rename-metric-kind
Oct 13, 2020
Merged

Rename Kind from the api/metric package#1240
MrAlias merged 11 commits intoopen-telemetry:masterfrom
MrAlias:rename-metric-kind

Conversation

@MrAlias
Copy link
Copy Markdown
Contributor

@MrAlias MrAlias commented Oct 11, 2020

As part of #964 the Kind type from the api/metric package needs to renamed to be more specific of what kind of thing it represents. In following with the common practice of not using the term metric as a noun, this kind is renamed to InstrumentKind to describe the metric instruments it describes.

Additionally, the Descriptor.MetricKind method is updated to match.

@MrAlias MrAlias added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Oct 11, 2020
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 11, 2020

Codecov Report

Merging #1240 into master will decrease coverage by 0.0%.
The diff coverage is 81.4%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1240     +/-   ##
========================================
- Coverage    76.8%   76.7%   -0.1%     
========================================
  Files         130     130             
  Lines        5828    5828             
========================================
- Hits         4477    4475      -2     
- Misses       1104    1105      +1     
- Partials      247     248      +1     
Impacted Files Coverage Δ
sdk/metric/aggregator/aggregatortest/test.go 76.7% <ø> (ø)
api/metric/instrumentkind_string.go 10.0% <10.0%> (ø)
api/metric/meter.go 57.7% <77.7%> (ø)
api/metric/descriptor.go 83.3% <100.0%> (ø)
api/metric/instrumentkind.go 100.0% <100.0%> (ø)
api/metric/registry/registry.go 92.1% <100.0%> (ø)
sdk/export/metric/metric.go 96.7% <100.0%> (ø)
sdk/metric/aggregator/aggregator.go 100.0% <100.0%> (ø)
sdk/metric/processor/basic/basic.go 98.2% <100.0%> (ø)
sdk/metric/selector/simple/simple.go 100.0% <100.0%> (ø)
... and 11 more

@MrAlias MrAlias added area:metrics Part of OpenTelemetry Metrics pkg:API Related to an API package priority:p1 and removed Skip Changelog PRs that do not require a CHANGELOG.md entry labels Oct 11, 2020
@MrAlias MrAlias added this to the RC1 milestone Oct 11, 2020
@MrAlias MrAlias self-assigned this Oct 11, 2020
@MrAlias MrAlias marked this pull request as ready for review October 11, 2020 17:53
Copy link
Copy Markdown
Contributor

@jmacd jmacd left a comment

Choose a reason for hiding this comment

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

💯

@MrAlias MrAlias merged commit 396dd60 into open-telemetry:master Oct 13, 2020
@MrAlias MrAlias deleted the rename-metric-kind branch October 13, 2020 14:55
@MrAlias MrAlias mentioned this pull request Nov 20, 2020
AzfaarQureshi pushed a commit to open-o11y/opentelemetry-go that referenced this pull request Dec 3, 2020
* Update metric Kind to InstrumentKind

* Update all the other modules with Kind rename

* Update metric Descriptor with instrument Kind rename

* Update other modules with Descriptor method rename

* Update OTLP exporter test field name

* Rename kind filenames

* Add changes to CHANGELOG

* Fix documentation for Grouping and PrecomputedSum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:metrics Part of OpenTelemetry Metrics pkg:API Related to an API package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants