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

[pdata] Rename NumberDataPoint/Exemplar.Type methods to ValueType #4850

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Feb 11, 2022

Add new NumberDataPoint.ValueType() and Exemplar.ValueType() instead. Do not use accessorType in the pdatagen, always rely on proto field type for consistency.

Resolves #4781

@dmitryax dmitryax requested review from a team and tigrannajaryan February 11, 2022 21:19
@codecov
Copy link

codecov bot commented Feb 11, 2022

Codecov Report

Merging #4850 (ab9994e) into main (8646986) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4850   +/-   ##
=======================================
  Coverage   90.74%   90.75%           
=======================================
  Files         180      180           
  Lines       10593    10597    +4     
=======================================
+ Hits         9613     9617    +4     
  Misses        762      762           
  Partials      218      218           
Impacted Files Coverage Δ
internal/otlptext/databuffer.go 100.00% <100.00%> (ø)
model/pdata/generated_metrics.go 97.14% <100.00%> (ø)
model/pdata/metrics.go 97.93% <100.00%> (+0.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8646986...ab9994e. Read the comment docs.

@dmitryax dmitryax force-pushed the rename-value-type branch 2 times, most recently from 6551321 to c8e9769 Compare February 11, 2022 21:27
@dmitryax dmitryax changed the title [pdata] Deprecate NumberDataPoint.Type() and Exemplar.Type() [pdata] Rename NumberDataPoint/Exemplar.Type methods to ValueType Feb 11, 2022
Deprecate `NumberDataPoint.Type()` and `Exemplar.Type()` in favor of `NumberDataPoint.ValueType()` and `Exemplar.ValueType()` instead. Do not use accessorType in the pdatagen, always rely on proto field type for consistency.
@bogdandrutu bogdandrutu merged commit 4137ef0 into open-telemetry:main Feb 11, 2022
@dmitryax dmitryax deleted the rename-value-type branch February 12, 2022 04:14
@jpkrohling jpkrohling added this to the v0.45.0 milestone Feb 17, 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.

[pdata] Consider renaming NumberDataPoint/Exemplar.Type methods to ValueType
4 participants