-
Notifications
You must be signed in to change notification settings - Fork 260
fixed logging part of telemetry #312
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #312 +/- ##
==========================================
- Coverage 46.51% 46.48% -0.03%
==========================================
Files 25 25
Lines 3440 3418 -22
==========================================
- Hits 1600 1589 -11
+ Misses 1600 1581 -19
- Partials 240 248 +8
Continue to review full report at Codecov.
|
…working into telemetry_logfix # Conflicts: # telemetry/telemetrybuffer.go
jaer-tsun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see changes to CNS telemetry here; will that be required? (for DNC as well?)
cni/network/plugin/main.go
Outdated
| log.Printf("[cni] Telemetry service started") | ||
|
|
||
| for attempt := 0; attempt < 5; attempt++ { | ||
| if telemetry.CheckIfSockExists() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
telemetry.SockExists() ?
Why are there 5 attempts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a calculated number. wait for second and then exit if telemetry socket doesn;t exist.
telemetry/telemetry_test.go
Outdated
| go tb.BufferAndPushData(0) | ||
| } | ||
|
|
||
| if !CheckIfSockExists() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SockExists()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
jaer-tsun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What this PR does / why we need it:
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #This PR addresses
Special notes for your reviewer:
Release note: