Part of the monitoring SPI which allows attaching metadata to outbound remote messages, and reading in metadata from incoming messages.
Multiple instruments are automatically handled, however they MUST NOT overlap in their idenfitiers.
Instances of RemoteInstrument are created from configuration. A new instance of RemoteInstrument will be created for each encoder and decoder. It's only called from the operator, so if it doesn't delegate to any shared instance it doesn't have to be thread-safe.
The size is the total serialized size in bytes of the complete message including Pekko specific headers and any RemoteInstrument metadata. If serializationTimingEnabled returns true, then time will be the total time it took to deserialize all data in the message in nanoseconds, otherwise it is 0.
Called right before putting the message onto the wire. Parameters MAY be null (except message and buffer)!
Called right before putting the message onto the wire. Parameters MAY be null (except message and buffer)!
The size is the total serialized size in bytes of the complete message including Pekko specific headers and any RemoteInstrument metadata. If serializationTimingEnabled returns true, then time will be the total time it took to serialize all data in the message in nanoseconds, otherwise it is 0.