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

Breaking Change: Remove usage of ocagent package for oc exporter #1516

Merged
merged 1 commit into from
Aug 17, 2020

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Aug 7, 2020

The config for OpenCensus exporter removed reconnection_delay.

@project-bot project-bot bot added this to In progress in Collector Aug 7, 2020
@bogdandrutu bogdandrutu changed the title Remove usage of ocagent package for oc exporter Breaking Change: Remove usage of ocagent package for oc exporter Aug 7, 2020
@bogdandrutu bogdandrutu force-pushed the ocagent branch 4 times, most recently from 8cd1ee5 to 0681d78 Compare August 7, 2020 02:37
@codecov
Copy link

codecov bot commented Aug 7, 2020

Codecov Report

Merging #1516 into master will increase coverage by 0.28%.
The diff coverage is 88.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1516      +/-   ##
==========================================
+ Coverage   91.57%   91.85%   +0.28%     
==========================================
  Files         254      254              
  Lines       17472    17452      -20     
==========================================
+ Hits        16000    16031      +31     
+ Misses       1060     1014      -46     
+ Partials      412      407       -5     
Impacted Files Coverage Δ
exporter/opencensusexporter/opencensus.go 87.93% <87.50%> (+42.87%) ⬆️
exporter/opencensusexporter/factory.go 100.00% <100.00%> (+9.37%) ⬆️
translator/internaldata/resource_to_oc.go 85.41% <0.00%> (ø)
...eceiver/opencensusreceiver/ocmetrics/opencensus.go 93.65% <0.00%> (+3.17%) ⬆️
receiver/opencensusreceiver/octrace/opencensus.go 86.66% <0.00%> (+3.33%) ⬆️
exporter/exporterhelper/metricshelper.go 100.00% <0.00%> (+7.69%) ⬆️

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 55d4579...80cf0eb. Read the comment docs.

exporter/opencensusexporter/README.md Show resolved Hide resolved
// Cannot use WaitForReady in the calls because we don't have a "deadline"
// set for every message, tradeoff to use streaming, also does not help with
// individual messages. So to achieve something similar, we block to ensure we connect.
if cfg.WaitForReady {
Copy link
Member

Choose a reason for hiding this comment

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

So this means if WaitForReady=true and we cannot connect then startup will be aborted, right? Is this an expected behavior?

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed for the moment. Will think about this and add later, was mostly useful for some tests, but don't have to support it now.

exporter/opencensusexporter/opencensus.go Show resolved Hide resolved
@bogdandrutu bogdandrutu force-pushed the ocagent branch 4 times, most recently from 57dd701 to c813dfc Compare August 17, 2020 17:22
if oce.tracesClients != nil {
// First remove all the clients from the channel.
for i := 0; i < oce.cfg.NumWorkers; i++ {
<-oce.tracesClients
Copy link
Member

Choose a reason for hiding this comment

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

Should we also honor cancellation context?

exporter/opencensusexporter/opencensus.go Outdated Show resolved Hide resolved
exporter/opencensusexporter/opencensus.go Show resolved Hide resolved
Collector automation moved this from In progress to Reviewer approved Aug 17, 2020
@bogdandrutu bogdandrutu force-pushed the ocagent branch 2 times, most recently from 761d8d5 to bbc9452 Compare August 17, 2020 18:59
    The config for OpenCensus exporter removed .

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu merged commit e5e3628 into open-telemetry:master Aug 17, 2020
Collector automation moved this from Reviewer approved to Done Aug 17, 2020
@bogdandrutu bogdandrutu deleted the ocagent branch August 17, 2020 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants