-
Notifications
You must be signed in to change notification settings - Fork 47
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
Upgrade telemetry sdk #36
Conversation
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
internal/cmd/scraper/scraper.go
Outdated
|
||
emitter, err := integration.NewTelemetryEmitter(c) | ||
if err != nil { | ||
return err |
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.
For debugging it's helpful to annotate the errors, to give a bit of context, e.g.: return errors.Wrap(err, "could not create new TelemetryEmitter
)`
internal/integration/roundtripper.go
Outdated
@@ -11,7 +11,7 @@ type licenseKeyRoundTripper struct { | |||
// RoundTrip wraps the `RoundTrip` method removing the "X-Insert-Key" |
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.
outdated 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
Remove the old vendored telemetry-sdk and replace it with the current open sourced one.
I also had to do some small changes to the code because some error handling has changed.
Also removed the current NaN code because the telemetry sdk handles it now and fix an issue with headers.