summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-23 22:08:13 +0300
committerPaul Buetow <paul@buetow.org>2026-05-23 22:08:13 +0300
commit1179c247afbc815a664e26fd58a52f75bec15ccd (patch)
tree9b79f99970b9d9223483ca3610a70b996dd49905 /cmd
parent2da5b82874549a4406b30dd9b29f5835102c2969 (diff)
doc: document MetricRegistry pointer safety guarantees
Add explicit documentation to Find, FindCaseInsensitive, FindWithAliases, List, and ListByCategory clarifying that returned *Metric pointers are safe to hold across concurrent Unregister calls. Metric objects are immutable after registration: Register panics on duplicate names (no in-place mutation), Unregister only deletes entries from the map (never modifies the Metric struct), and no mutator methods exist on the Metric type. The sync.RWMutex protects the map structures, while the immutability invariant protects the returned pointers.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions