@NonNullApi @Incubating(since="1.0.0") public class TimedAspect extends Object
@Timed.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_METRIC_NAME |
static String |
EXCEPTION_TAG
Tag key for an exception.
|
| Constructor and Description |
|---|
TimedAspect()
Create a
TimedAspect instance with Metrics.globalRegistry. |
TimedAspect(MeterRegistry registry) |
TimedAspect(MeterRegistry registry,
Function<ProceedingJoinPoint,Iterable<Tag>> tagsBasedOnJoinPoint) |
public static final String DEFAULT_METRIC_NAME
public static final String EXCEPTION_TAG
public TimedAspect()
TimedAspect instance with Metrics.globalRegistry.public TimedAspect(MeterRegistry registry)
public TimedAspect(MeterRegistry registry, Function<ProceedingJoinPoint,Iterable<Tag>> tagsBasedOnJoinPoint)
Copyright © 2020 LeanCloud. All rights reserved.