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 panic in otlp traces to zipkin #1963

Merged
merged 3 commits into from
Oct 15, 2020

Conversation

pkositsyn
Copy link
Contributor

@pkositsyn pkositsyn commented Oct 15, 2020

Description:
Fixing a bug. There was a panic converting internal traces to zipkin, which occured if there were both a valid span and a nil span. With only nil span the error was about absence of trace id. No check for nil span was present - that is the bug.

Link to tracking Issue: might be connected to #1845

Testing: added test with 2 spans

@codecov
Copy link

codecov bot commented Oct 15, 2020

Codecov Report

Merging #1963 into master will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1963      +/-   ##
==========================================
- Coverage   91.52%   91.48%   -0.05%     
==========================================
  Files         280      280              
  Lines       16492    16495       +3     
==========================================
- Hits        15095    15090       -5     
- Misses        967      974       +7     
- Partials      430      431       +1     
Impacted Files Coverage Δ
translator/trace/zipkin/traces_to_zipkinv2.go 92.96% <100.00%> (+0.10%) ⬆️
...ssor/tailsamplingprocessor/idbatcher/id_batcher.go 81.81% <0.00%> (-18.19%) ⬇️
...mplingprocessor/tailsamplingprocessor/processor.go 77.06% <0.00%> (-0.92%) ⬇️
translator/internaldata/resource_to_oc.go 91.78% <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 f683a38...3fbdb98. Read the comment docs.

@pkositsyn
Copy link
Contributor Author

@bogdandrutu Should be good to go

@bogdandrutu bogdandrutu merged commit 6f61725 into open-telemetry:master Oct 15, 2020
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
* add otlp trace http exporter

* remove `WithTraces*` options

* address discussions

* run make precommit

* rename WithURLPath option
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
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