From 39acab32327c5a1214e0c134fddb54fccab7bf32 Mon Sep 17 00:00:00 2001 From: Yoshi Yamaguchi <145104+ymotongpoo@users.noreply.github.com> Date: Sat, 31 Jul 2021 00:00:58 +0900 Subject: [PATCH] Fix code sample in otel.GetTraceProvider (#2147) --- trace.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trace.go b/trace.go index b1e8e56bd..28b4f5e4d 100644 --- a/trace.go +++ b/trace.go @@ -31,9 +31,9 @@ func Tracer(name string, opts ...trace.TracerOption) trace.Tracer { // If none is registered then an instance of NoopTracerProvider is returned. // // Use the trace provider to create a named tracer. E.g. -// tracer := global.GetTracerProvider().Tracer("example.com/foo") +// tracer := otel.GetTracerProvider().Tracer("example.com/foo") // or -// tracer := global.Tracer("example.com/foo") +// tracer := otel.Tracer("example.com/foo") func GetTracerProvider() trace.TracerProvider { return global.TracerProvider() }