public class MetricsSupport extends Object
| Constructor and Description |
|---|
MetricsSupport() |
public static Map<String,String> applicationTags(ApplicationModel applicationModel)
public static Map<String,String> applicationTags(ApplicationModel applicationModel, @Nullable Map<String,String> extraInfo)
public static Map<String,String> serviceTags(ApplicationModel applicationModel, String serviceKey, Map<String,String> extraInfo)
public static Map<String,String> methodTags(ApplicationModel applicationModel, String serviceKey, String methodName)
public static MetricsKey getMetricsKey(Throwable throwable)
public static MetricsKey getAggMetricsKey(Throwable throwable)
public static String getSide(Invocation invocation)
public static String getInterfaceName(Invocation invocation)
public static String getGroup(Invocation invocation)
public static String getVersion(Invocation invocation)
public static void increment(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector, MetricsEvent event)
public static void incrAndAddRt(MetricsKey metricsKey, MetricsPlaceValue placeType, ServiceMetricsCollector<TimeCounterEvent> collector, TimeCounterEvent event)
public static void increment(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, MetricsEvent event)
public static void init(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, MetricsEvent event)
public static void dec(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, MetricsEvent event)
public static void incrAndAddRt(MetricsKey metricsKey, MetricsPlaceValue placeType, MethodMetricsCollector<TimeCounterEvent> collector, TimeCounterEvent event)
public static <T> void fillZero(Map<?,Map<T,AtomicLong>> data)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.