oneby-wang commented on issue #25212:
URL: https://github.com/apache/pulsar/issues/25212#issuecomment-3851668518

   Oh, I see, it's the developer's duty to pass a different `OpenTelemetry` 
instance into `PulsarClientSharedResourcesBuilder`, just like the 
`ClientBuilderImpl#openTelemetry()` method.
   
   
https://github.com/apache/pulsar/blob/3dc1fd6086b2f70724f2b961af87556d7dae8e3b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientBuilderImpl.java#L154-L158
   
   Every `ClientBuilderImpl` and  `PulsarClientSharedResourcesBuilder` should 
use different `OpenTelemetry` instances, otherwise they will shared the same 
global `OpenTelemetry` instance. Is this understanding correct?
   
   
https://github.com/apache/pulsar/blob/3dc1fd6086b2f70724f2b961af87556d7dae8e3b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/metrics/InstrumentProvider.java#L38-L52
   
   But, using the same global `OpenTelemetry` instance across multiple 
`MemoryBufferStats` instances seems to cause them to affect each other?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to