gotoprom icon indicating copy to clipboard operation
gotoprom copied to clipboard

Allow empty namespace, namespace chain for nested structs

Open burik666 opened this issue 10 months ago • 1 comments

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
}

burik666 avatar Feb 14 '25 05:02 burik666