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

Upgrade telemetry sdk #36

Merged
merged 5 commits into from
Feb 5, 2020
Merged

Upgrade telemetry sdk #36

merged 5 commits into from
Feb 5, 2020

Conversation

lorgan3
Copy link
Contributor

@lorgan3 lorgan3 commented Jan 31, 2020

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.

@claassistantio
Copy link

claassistantio commented Jan 31, 2020

CLA assistant check
All committers have signed the CLA.

@lorgan3 lorgan3 changed the title [WIP] Upgrade telemetry sdk Upgrade telemetry sdk Feb 4, 2020
douglascamata
douglascamata previously approved these changes Feb 4, 2020
Copy link

@douglascamata douglascamata left a comment

Choose a reason for hiding this comment

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

LGTM


emitter, err := integration.NewTelemetryEmitter(c)
if err != nil {
return err
Copy link
Contributor

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)`

@@ -11,7 +11,7 @@ type licenseKeyRoundTripper struct {
// RoundTrip wraps the `RoundTrip` method removing the "X-Insert-Key"
Copy link
Contributor

@jorik jorik Feb 5, 2020

Choose a reason for hiding this comment

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

outdated comment

Copy link
Contributor

@jorik jorik left a comment

Choose a reason for hiding this comment

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

LGTM

@lorgan3 lorgan3 merged commit 5172100 into master Feb 5, 2020
@lorgan3 lorgan3 deleted the lclaeys/upgrade-telemetry-sdk branch February 5, 2020 11:22
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.

4 participants