Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

0.11.0 change kv to label #90

Merged
merged 3 commits into from
Sep 15, 2020
Merged

0.11.0 change kv to label #90

merged 3 commits into from
Sep 15, 2020

Conversation

domgreen
Copy link
Contributor

Change kv to label as this has been updated in OTel 0.11.0.

Release Notes https://github.com/open-telemetry/opentelemetry-go/releases/tag/v0.11.0

See open-telemetry/opentelemetry-go#1060

Side Note:
codes should also be updated but would probably better do it in a different PR.

@domgreen
Copy link
Contributor Author

I did look at updating code to the otel version but then realised that spanData.StatusCode does not use the new otel codes package. It currently still uses the grpc package.

@domgreen
Copy link
Contributor Author

@paulosman @lizthegrey couldn't seem to assign reviewers, would you mind taking a look.

Have tested my fork against Honeycomb and all seems to be injesting fine from a client perspective.

@paulosman paulosman self-requested a review September 11, 2020 14:10
@paulosman paulosman self-assigned this Sep 11, 2020
Copy link
Contributor

@paulosman paulosman left a comment

Choose a reason for hiding this comment

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

One small non-blocking comment. LGTM! Thanks so much for tackling this.

@@ -38,52 +40,56 @@ func main() {
dataset := flag.String("dataset", "opentelemetry", "Your Honeycomb dataset")
flag.Parse()

exporter, err := honeycomb.NewExporter(
exporter, errExp := honeycomb.NewExporter(
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason to change this? If not, I'd prefer to leave it as it was, naming this err and using err = func(ctx context.Context) error {} below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, will fix that ... Just habit so err doesn't get shadowed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

revert it back ... it is only example code :)

@domgreen domgreen requested a review from paulosman September 12, 2020 10:20
@domgreen
Copy link
Contributor Author

domgreen commented Sep 12, 2020

@paulosman im not sure if any other updates are needed for it to be 0.11.0 compatible and tagged, I did update the version in preperation.
All go.mod are pointing at otel 0.11.0 ... if you could double check to see if I missed anything and then maybe tag 0.11.0?

Actually need to update the VERSION file etc.

@paulosman paulosman merged commit 14a6d9a into honeycombio:main Sep 15, 2020
@domgreen domgreen deleted the kv_label branch September 16, 2020 05:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants