add metrics for service

This commit is contained in:
ginuerzh
2022-03-05 00:28:13 +08:00
parent 8d8785f534
commit e587b4df7c
34 changed files with 548 additions and 118 deletions

View File

@ -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
}
}