Registers a new observer function if it's not already attached
The observer function to attach
Removes an observer function from the list of observers
The observer function to detach
Notifies all registered observers with a message and optional metadata
The message to send to observers
Optional
metadata: objectOptional metadata to send to observers
MetricsObservable class that manages metric observers
MetricsObservable