From 3eebfb5b1197e1d44f2a75a6a18efa0e249161fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B0=D1=81=D0=B8=D0=BB=D0=B8=D0=B9=20=D0=A2=D0=BE?= =?UTF-8?q?=D0=BB=D1=81=D1=82=D0=BE=D0=B2?= Date: Fri, 10 May 2024 08:12:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20options.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- options.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/options.go b/options.go index 37164a71..97adbf5e 100644 --- a/options.go +++ b/options.go @@ -269,15 +269,7 @@ func Logger(l logger.Logger, opts ...LoggerOption) Option { } } } - for _, mtr := range o.Meters { - for _, or := range lopts.meters { - if mtr.Name() == or || all { - if err = mtr.Init(meter.Logger(l)); err != nil { - return err - } - } - } - } + for _, trc := range o.Tracers { for _, ot := range lopts.tracers { if trc.Name() == ot || all {