Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

trace: allow for concurrent uploads to Stackdriver #246

Merged
merged 4 commits into from
Jan 8, 2020

Conversation

nicktrav
Copy link
Contributor

In situations where a large number of spans need to be exported from a
single instance of the exporter, bundle uploads are limited to using a
single goroutine. This limits the overall throughput of the exporter.

Make use of the NumberOfWorkers option to allow the exporter to use
multiple, concurrent goroutines to upload spans to Stackdriver.

Closes #245.

Signed-off-by: Nick Travers n.e.travers@gmail.com

In situations where a large number of spans need to be exported from a
single instance of the exporter, bundle uploads are limited to using a
single goroutine. This limits the overall throughput of the exporter.

Make use of the NumberOfWorkers option to allow the exporter to use
multiple, concurrent goroutines to upload spans to Stackdriver.

Closes census-ecosystem#245.

Signed-off-by: Nick Travers <n.e.travers@gmail.com>
@codecov-io
Copy link

codecov-io commented Dec 24, 2019

Codecov Report

Merging #246 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #246      +/-   ##
==========================================
+ Coverage   73.19%   73.22%   +0.03%     
==========================================
  Files          14       14              
  Lines        1619     1621       +2     
==========================================
+ Hits         1185     1187       +2     
  Misses        358      358              
  Partials       76       76
Impacted Files Coverage Δ
stackdriver.go 32.32% <ø> (ø) ⬆️
trace.go 60% <100%> (+0.9%) ⬆️

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 1cdca91...2c45202. Read the comment docs.

@nicktrav
Copy link
Contributor Author

cc: @songy23 @rghetia - would you be able to help me get a review on this?

stackdriver.go Outdated Show resolved Hide resolved
trace_test.go Show resolved Hide resolved
Signed-off-by: Nick Travers <n.e.travers@gmail.com>
Signed-off-by: Nick Travers <n.e.travers@gmail.com>
Signed-off-by: Nick Travers <n.e.travers@gmail.com>
@nicktrav
Copy link
Contributor Author

nicktrav commented Jan 2, 2020

@songy23 - thanks for the review. Should be good for another pass.

Copy link
Contributor

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

LGTM

@nicktrav
Copy link
Contributor Author

nicktrav commented Jan 3, 2020

@songy23 - cool to land this one?

@rghetia rghetia merged commit 626e69e into census-ecosystem:master Jan 8, 2020
@nicktrav nicktrav deleted the nickt.export-concurrency branch January 17, 2020 16:47
@nicktrav
Copy link
Contributor Author

@rghetia - thanks for merging. Any chance of a release?

@rghetia
Copy link
Contributor

rghetia commented Jan 17, 2020

@rghetia - thanks for merging. Any chance of a release?

sure, after #248.

@rghetia
Copy link
Contributor

rghetia commented Jan 17, 2020

@nicktrav released v0.12.9

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

trace: allow for concurrent uploads to Stackdriver
5 participants