meter: add missing options
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		| @@ -51,6 +51,20 @@ func NewOptions(opt ...Option) Options { | |||||||
| 	return opts | 	return opts | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // LabelPrefix sets the labels prefix | ||||||
|  | func LabelPrefix(pref string) Option { | ||||||
|  | 	return func(o *Options) { | ||||||
|  | 		o.LabelPrefix = pref | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // MetricPrefix sets the metric prefix | ||||||
|  | func MetricPrefix(pref string) Option { | ||||||
|  | 	return func(o *Options) { | ||||||
|  | 		o.MetricPrefix = pref | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  |  | ||||||
| // Context sets the metrics context | // Context sets the metrics context | ||||||
| func Context(ctx context.Context) Option { | func Context(ctx context.Context) Option { | ||||||
| 	return func(o *Options) { | 	return func(o *Options) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user