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

Migrate zipkin receiver/exporter to the new interfaces #1484

Merged
merged 1 commit into from
Aug 4, 2020

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Aug 3, 2020

Extracted from #1446

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
if err != nil {
return len(td.Spans), consumererror.Permanent(fmt.Errorf("failed to push trace data via Zipkin exporter: %w", err))
func (ze *zipkinExporter) PushTraceData(ctx context.Context, td pdata.Traces) (int, error) {
numSpans := td.SpanCount()
Copy link
Member

Choose a reason for hiding this comment

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

nit: should the number of spans be extracted from the OC model (after conversion below), since you iterate over it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will fix when will no longer go to OC then Zipkin. See #1446

@codecov
Copy link

codecov bot commented Aug 4, 2020

Codecov Report

Merging #1484 into master will increase coverage by 0.03%.
The diff coverage is 82.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1484      +/-   ##
==========================================
+ Coverage   90.91%   90.95%   +0.03%     
==========================================
  Files         239      239              
  Lines       16706    16708       +2     
==========================================
+ Hits        15188    15196       +8     
+ Misses       1086     1083       -3     
+ Partials      432      429       -3     
Impacted Files Coverage Δ
exporter/zipkinexporter/zipkin.go 70.83% <62.50%> (+1.26%) ⬆️
exporter/zipkinexporter/factory.go 100.00% <100.00%> (ø)
receiver/zipkinreceiver/factory.go 100.00% <100.00%> (ø)
receiver/zipkinreceiver/trace_receiver.go 90.20% <100.00%> (ø)
service/defaultcomponents/defaults.go 84.61% <100.00%> (ø)
translator/internaldata/oc_to_traces.go 86.09% <0.00%> (+2.13%) ⬆️
receiver/otlpreceiver/otlp.go 94.44% <0.00%> (+2.77%) ⬆️

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 be37f99...3a4187c. Read the comment docs.

@bogdandrutu bogdandrutu merged commit c4a3829 into open-telemetry:master Aug 4, 2020
@bogdandrutu bogdandrutu deleted the zipkin branch August 4, 2020 00:32
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