Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Update to OpenTelemetry 0.18.0 #71

Merged
merged 3 commits into from
Mar 31, 2021

Conversation

akulnurislam
Copy link
Contributor

No description provided.

span.SetAttributes(label.Int("depth", depth))
span.SetAttributes(
attribute.Int("depth", depth),
semconv.ServiceNameKey.String(serviceName),
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @akulnurislam ! This one has us scratching our heads a bit. What has changed to require us to add this serviceName in order for the test to pass?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@RichVanderwal ya hahaha, I saw NewExporter doesn't have any setAttributes.

If I look NewExportPipeline there is set attribute serviceName for otel controller.

// Minimally default resource with a service name. This is overwritten if
// another is passed in traceOpt or pushOpt.
r := resource.NewWithAttributes(semconv.ServiceNameKey.String(service))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@RichVanderwal I've changed set attribute into NewTracerProvider

onprem
onprem previously approved these changes Mar 10, 2021
Copy link

@onprem onprem left a comment

Choose a reason for hiding this comment

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

Just a small non-blocking suggestion, everything else LGTM!

Comment on lines 157 to 161
r := resource.NewWithAttributes(semconv.ServiceNameKey.String(serviceName))

tracerProvider := sdktrace.NewTracerProvider(
sdktrace.WithBatcher(e, sdktrace.WithBatchTimeout(15), sdktrace.WithMaxExportBatchSize(10)),
sdktrace.WithResource(r),
Copy link

Choose a reason for hiding this comment

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

I think it'd be nice to modify the example app like this as well (adding ServiceName resource here: https://github.com/newrelic/opentelemetry-exporter-go/blob/master/examples/simple/main.go#L57).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@prmsrswt sure, thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this version should go up, after the new release

github.com/newrelic/opentelemetry-exporter-go v0.17.0

Choose a reason for hiding this comment

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

a new go.opentelemetry.io/otel v0.19.0 has been released, should this PR be updated to the latest one?

Copy link
Contributor

Choose a reason for hiding this comment

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

Indeed. Merging this PR soon as a stepping stone to 0.19.0.

Copy link
Contributor

@RichVanderwal RichVanderwal left a comment

Choose a reason for hiding this comment

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

Thanks again, @akulnurislam !

@RichVanderwal RichVanderwal merged commit 3f1cf64 into newrelic:master Mar 31, 2021
Go Engineering Board automation moved this from To Do to Done Mar 31, 2021
@nr-swilloughby
Copy link

@akulnurislam @gunturaf @RichVanderwal @onprem @jodeev We have just released v0.18.0 of our Go OpenTelemetry Exporter which supports OpenTelemetry for Go v0.19.0. Let us know if you have any questions or comments.
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

None yet

6 participants