Optional < Timer . Context > function ( Optional < MetricContext > arg0 , final String arg1 ) { return arg0 . transform ( new Function < MetricContext , Timer . Context > ( ) { @ Override public Timer . Context apply ( @ Nonnull MetricContext arg2 ) { return arg2 . timer ( arg1 ) . time ( ) ; } } ) ; }
returns a com.codahale.metrics.timer.context only if gobblin.metrics.metriccontext is defined . concode_field_sep boolean instrumentationEnabled concode_elem_sep MetricContext metricContext concode_elem_sep Random RAND concode_elem_sep String METRIC_CONTEXT_NAME_KEY concode_elem_sep Closer closer concode_field_sep boolean isLineageInstrumented concode_elem_sep void markMeter concode_elem_sep void markMeter concode_elem_sep MetricContext getMetricContext concode_elem_sep MetricContext getMetricContext concode_elem_sep MetricContext getMetricContext concode_elem_sep void endTimer concode_elem_sep List<Tag<?>> generateTags concode_elem_sep MetricContext newContextFromReferenceContext concode_elem_sep void switchMetricContext concode_elem_sep void switchMetricContext concode_elem_sep void setMetricContextName concode_elem_sep boolean isInstrumentationEnabled concode_elem_sep void updateTimer concode_elem_sep void close