Обновить options.go
This commit is contained in:
parent
fa1427014c
commit
3eebfb5b11
10
options.go
10
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 _, trc := range o.Tracers {
|
||||||
for _, ot := range lopts.tracers {
|
for _, ot := range lopts.tracers {
|
||||||
if trc.Name() == ot || all {
|
if trc.Name() == ot || all {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user