We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3901aee + 67afe45 commit 2bc64ebCopy full SHA for 2bc64eb
start.go
@@ -6,7 +6,7 @@ import (
6
"sync/atomic"
7
"time"
8
9
- "github.com/hashicorp/go-immutable-radix"
+ iradix "github.com/hashicorp/go-immutable-radix"
10
)
11
12
// Config is used to configure metrics settings
@@ -48,6 +48,11 @@ func init() {
48
globalMetrics.Store(&Metrics{sink: &BlackholeSink{}})
49
}
50
51
+// Default returns the shared global metrics instance.
52
+func Default() *Metrics {
53
+ return globalMetrics.Load().(*Metrics)
54
+}
55
+
56
// DefaultConfig provides a sane default configuration
57
func DefaultConfig(serviceName string) *Config {
58
c := &Config{
0 commit comments