add metrics for service
This commit is contained in:
@ -16,6 +16,7 @@ type Options struct {
|
||||
TLSConfig *tls.Config
|
||||
Chain chain.Chainer
|
||||
Logger logger.Logger
|
||||
Service string
|
||||
}
|
||||
|
||||
type Option func(opts *Options)
|
||||
@ -55,3 +56,9 @@ func LoggerOption(logger logger.Logger) Option {
|
||||
opts.Logger = logger
|
||||
}
|
||||
}
|
||||
|
||||
func ServiceOption(service string) Option {
|
||||
return func(opts *Options) {
|
||||
opts.Service = service
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user