meter: improve meter usage across micro framework #409

Merged
vtolstov merged 3 commits from feature/issue-220 into v4 2025-10-07 23:54:21 +03:00
2 changed files with 6 additions and 0 deletions
Showing only changes of commit 5dfcc76ce8 - Show all commits

View File

@@ -59,6 +59,8 @@ type Meter interface {
Options() Options
// String return meter type
String() string
// Unregister metric name and drop all data
Unregister(name string, labels ...string) bool
}
// Counter is a counter

View File

@@ -28,6 +28,10 @@ func (r *noopMeter) Name() string {
return r.opts.Name
}
func (r *noopMeter) Unregister(name string, labels ...string) bool {
return true
}
// Init initialize options
func (r *noopMeter) Init(opts ...Option) error {
for _, o := range opts {