From 39aa3ccb5a7a6aa8bc42e47d9c0681edc4d894c8 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 16 Aug 2023 08:12:36 +0300 Subject: [PATCH] fix Provider option Signed-off-by: Vasiliy Tolstov --- options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/options.go b/options.go index 5e19195..38e308a 100644 --- a/options.go +++ b/options.go @@ -8,8 +8,8 @@ import ( type providerKey struct{} -func Provider(opts ...tracesdk.TracerProvider) tracer.Option { - return tracer.SetOption(providerKey{}, opts) +func Provider(tp *tracesdk.TracerProvider) tracer.Option { + return tracer.SetOption(providerKey{}, tp) } type providerOptionsKey struct{} -- 2.45.2