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

Add StatusCode enum values to avoid usage of the proto generated values #1706

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

bogdandrutu
Copy link
Member

Will allow contrib to remove dependency on opentelemetry-proto which had the generated proto files.

@codecov
Copy link

codecov bot commented Sep 1, 2020

Codecov Report

Merging #1706 into master will increase coverage by 0.00%.
The diff coverage is 88.88%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1706   +/-   ##
=======================================
  Coverage   92.33%   92.34%           
=======================================
  Files         265      265           
  Lines       20061    20061           
=======================================
+ Hits        18524    18526    +2     
+ Misses       1109     1108    -1     
+ Partials      428      427    -1     
Impacted Files Coverage Δ
consumer/pdata/trace.go 100.00% <ø> (ø)
translator/trace/jaeger/jaegerproto_to_traces.go 86.40% <85.71%> (ø)
internal/data/testdata/trace.go 100.00% <100.00%> (ø)
translator/trace/jaeger/traces_to_jaegerproto.go 88.23% <100.00%> (ø)
translator/internaldata/resource_to_oc.go 88.88% <0.00%> (+1.85%) ⬆️

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 82525f3...569320d. Read the comment docs.

Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

LGTM

This is necessary to prevent circular package dependency that
can arise when we need to hide certain pdata functions in the
internal package in a commit that is coming soon in
open-telemetry#1703
@bogdandrutu bogdandrutu merged commit ec32735 into open-telemetry:master Sep 1, 2020
@bogdandrutu bogdandrutu deleted the spanstatus branch September 1, 2020 22:14
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
The makeSamplingDecision function is a wrapper around the provider
sampler calling ShouldSample with a duplicate configuration struct. That
duplication and need for translation as well as the addition function
call is unnecessary, this function is called in only one place.

Resolves open-telemetry#1706
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
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.

2 participants