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 SpanCaptureReporter test spillage (#22) #25

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

garthk
Copy link

@garthk garthk commented Jul 31, 2019

  • 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
Copy link
Author

garthk commented Jul 31, 2019

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
Copy link

codecov-io commented Jul 31, 2019

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