From 7af7649448f8ab02f42045bbd3f21de17bc8deff Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 29 Jan 2021 14:02:54 +0300 Subject: [PATCH] store: add Name func Signed-off-by: Vasiliy Tolstov --- store/options.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/store/options.go b/store/options.go index f028a0a2..1f968f8f 100644 --- a/store/options.go +++ b/store/options.go @@ -91,6 +91,13 @@ func Meter(m meter.Meter) Option { } } +// Name the name +func Name(n string) Option { + return func(o *Options) { + o.Name = n + } +} + // Tracer sets the tracer func Tracer(t tracer.Tracer) Option { return func(o *Options) {