gotoprom
gotoprom copied to clipboard
Allow empty namespace, namespace chain for nested structs
The namespace is optional.
Nested structs without a namespace are useful for embedded structs.
var metrics struct {
BaseMetrics
Sub SubMetrics `namespace:"sub"`
SomeCounter func(...) prometheus.Counter
}