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

Fix setting internal status code in jaeger receivers #1105

Conversation

dmitryax
Copy link
Member

Description:
Bug description: if "http.status_code" and "error" tags are both set in incoming a jaeger span, internal status code is incorrectly set to Unknown code ignoring value from http.status_code tag. This commit fixes the described bug, so http.status_code tag always has precedence over error tag during Jaeger -> Internal data model translation.

Testing: added more test cases to cover the bug.

Bug description: if "http.status_code" and "error" tags are both set in incoming a jaeger span, internal status code is incorrectly set to Unknown code ignoring value from http.status_code tag. This commit fixes the described bug, so http.status_code tag always has precedence over error tag during Jaeger -> Internal data model translation.
@codecov
Copy link

codecov bot commented Jun 10, 2020

Codecov Report

Merging #1105 into master will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1105      +/-   ##
==========================================
+ Coverage   86.45%   86.51%   +0.06%     
==========================================
  Files         198      198              
  Lines       14171    14164       -7     
==========================================
+ Hits        12251    12254       +3     
+ Misses       1468     1460       -8     
+ Partials      452      450       -2     
Impacted Files Coverage Δ
translator/trace/jaeger/jaegerproto_to_traces.go 83.42% <100.00%> (+3.52%) ⬆️
translator/internaldata/resource_to_oc.go 76.47% <0.00%> (ø)
service/service.go 51.22% <0.00%> (+0.70%) ⬆️

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 8b9fe07...521f0a6. Read the comment docs.

@dmitryax dmitryax added this to In progress in Triaged via automation Jun 11, 2020
@dmitryax dmitryax moved this from In progress to Review in progress in Triaged Jun 11, 2020
Triaged automation moved this from Review in progress to Reviewer approved Jun 11, 2020
@tigrannajaryan tigrannajaryan merged commit 876cf09 into open-telemetry:master Jun 11, 2020
Triaged automation moved this from Reviewer approved to Done Jun 11, 2020
wyTrivail pushed a commit to mxiamxia/opentelemetry-collector that referenced this pull request Jul 13, 2020
…1105)

Bug description: if "http.status_code" and "error" tags are both set in incoming a jaeger span, internal status code is incorrectly set to Unknown code ignoring value from http.status_code tag. This commit fixes the described bug, so http.status_code tag always has precedence over error tag during Jaeger -> Internal data model translation.
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
…etry#1105)

* Bump google.golang.org/grpc from 1.31.0 to 1.31.1 in /sdk

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.31.0 to 1.31.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.31.0...v1.31.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Auto-fix go.sum changes in dependent modules

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
…y#1105)

Bumps [boto3](https://github.com/boto/boto3) from 1.20.31 to 1.20.32.
- [Release notes](https://github.com/boto/boto3/releases)
- [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst)
- [Commits](boto/boto3@1.20.31...1.20.32)

---
updated-dependencies:
- dependency-name: boto3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Triaged
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants