Skip to content

Fix SpanCaptureReporter test spillage (#22) - #25

Merged
tsloughter merged 1 commit into
masterfrom
fix/span-capture-spillage-#22
Aug 9, 2019
Merged

Fix SpanCaptureReporter test spillage (#22)#25
tsloughter merged 1 commit into
masterfrom
fix/span-capture-spillage-#22

Conversation

@garthk

@garthk garthk commented Jul 31, 2019

Copy link
Copy Markdown
  • Discard spans started before attach/0 was called

  • Trigger report/2 and wait 1ms before collect/0

  • Set and advise send_interval_ms: 100 to reduce unpredictability of report/2 time, which with send_interval_ms: 1 would wait until after detach/0

@garthk
garthk requested a review from tsloughter July 31, 2019 22:51
@garthk garthk self-assigned this Jul 31, 2019
@garthk

garthk commented Jul 31, 2019

Copy link
Copy Markdown
Author

Please release 0.4.1 after merge, because this is blocking work on opencensus-beam/opencensus_absinthe#17, opencensus-beam/opencensus_absinthe#21, and others.

@codecov-io

codecov-io commented Jul 31, 2019

Copy link
Copy Markdown

Codecov Report

Merging #25 into master will increase coverage by 0.32%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
+ Coverage   97.91%   98.24%   +0.32%     
==========================================
  Files           5        5              
  Lines          48       57       +9     
==========================================
+ Hits           47       56       +9     
  Misses          1        1
Impacted Files Coverage Δ
lib/opencensus/span.ex 100% <100%> (ø) ⬆️
...b/opencensus/test_support/span_capture_reporter.ex 100% <100%> (ø) ⬆️

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 221c58f...3af2473. Read the comment docs.

* Discard spans started before `attach/0` was called

* Trigger `report/2` and wait 1ms before `collect/0`

* Set and advise `send_interval_ms: 100` to reduce unpredictability
  of `report/2` time, which with `send_interval_ms: 1` would sometimes
  wait until after `detach/0`
@garthk
garthk force-pushed the fix/span-capture-spillage-#22 branch from 1d1cd24 to 3af2473 Compare August 3, 2019 02:03
@tsloughter
tsloughter merged commit f968f96 into master Aug 9, 2019
@garthk
garthk deleted the fix/span-capture-spillage-#22 branch November 9, 2020 21:08
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.

3 participants