@ Nullable public static MetricsCollection propagate ( Metrics metrics ) { final MetricsCollection metricsCollection = getLocalMetricsCollection ( ) ; if ( metricsCollection != null ) { metricsCollection . add ( metrics ) ; } return metricsCollection ; }
Propagates metrics entry to the thread local metrics collection does nothing if local metrics collection is missing .