Sometimes in one application different subsystems use different metric prefixes. To help with that this PR introduces methods CloneWithPrefix and CloneWithPrefixExtension that return a new client object that has new prefix or original prefix + new prefix respectively. The new clients reuse the transport infrastructure of the original client. Closing an original client or any of its clones makes all of them stop. It is safe to call Close any number of times on any client by the way.
Sometimes in one application different subsystems use different metric prefixes. To help with that this PR introduces methods
CloneWithPrefix
andCloneWithPrefixExtension
that return a new client object that has new prefix or original prefix + new prefix respectively. The new clients reuse the transport infrastructure of the original client. Closing an original client or any of its clones makes all of them stop. It is safe to call Close any number of times on any client by the way.