public boolean isTracingEnabledForProducer ( String producerId ) { //check if tracing is completely disabled. if ( ! MoskitoConfigurationHolder . getConfiguration ( ) . getTracingConfig ( ) . isTracingEnabled ( ) ) return false ; Tracer tracer = tracers . get ( producerId ) ; return tracer != null && tracer . isEnabled ( ) ; }
Returns true if tracing is enabled globally and in particular for this producer .