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

Remove Status.value #2147

Merged
merged 3 commits into from
Dec 1, 2020
Merged

Conversation

anuraaga
Copy link
Contributor

Fixes #1744

Not quite merged but open-telemetry/opentelemetry-specification#1257 has so many approvals I just went with its spec.

@Oberon00
Copy link
Member

This PR also changes attribute names in the Jaeger exporter. Intentionally?

@anuraaga
Copy link
Contributor Author

anuraaga commented Nov 27, 2020

Yeah went ahead and reflected the almost merged open-telemetry/opentelemetry-specification#1257 since it makes clearest what to do instead of using value. We can hold off on merging this until that's in of course.

Copy link
Member

@Oberon00 Oberon00 left a comment

Choose a reason for hiding this comment

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

I think this makes sense. 👍

Copy link
Contributor

@jkwatson jkwatson left a comment

Choose a reason for hiding this comment

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

Thanks!

*
* @return the numerical value of the code.
*/
public int value() {
Copy link
Contributor

Choose a reason for hiding this comment

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

since this is a public API should we deprecate it before deleting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense

@codecov
Copy link

codecov bot commented Dec 1, 2020

Codecov Report

Merging #2147 (d0ffce0) into master (c3261b4) will decrease coverage by 0.03%.
The diff coverage is 53.84%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2147      +/-   ##
============================================
- Coverage     85.33%   85.29%   -0.04%     
- Complexity     2135     2136       +1     
============================================
  Files           245      245              
  Lines          8181     8181              
  Branches        903      904       +1     
============================================
- Hits           6981     6978       -3     
- Misses          869      874       +5     
+ Partials        331      329       -2     
Impacted Files Coverage Δ Complexity Δ
...in/java/io/opentelemetry/api/trace/StatusCode.java 87.50% <ø> (-12.50%) 2.00 <0.00> (-1.00)
...java/io/opentelemetry/exporter/jaeger/Adapter.java 92.52% <53.84%> (-4.68%) 21.00 <0.00> (+1.00) ⬇️
...i/trace/propagation/W3CTraceContextPropagator.java 97.27% <0.00%> (+0.90%) 23.00% <0.00%> (+1.00%)
...y/sdk/metrics/aggregator/DoubleMinMaxSumCount.java 100.00% <0.00%> (+4.08%) 6.00% <0.00%> (ø%)

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 c3261b4...d0ffce0. Read the comment docs.

@anuraaga anuraaga merged commit 7ed6d8d into open-telemetry:master Dec 1, 2020
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.

The spec doesn't seem to define numeric values for the status codes, do we need these?
3 participants