public interface AdvancedMetricExtension extends MetricExtension
MetricExtension extending input parameters of each metric
collection method with EntryType.| Modifier and Type | Method and Description |
|---|---|
void |
onBlocked(ResourceWrapper rw,
int batchCount,
String origin,
BlockException e,
Object[] args)
Add current block count of the resource name.
|
void |
onComplete(ResourceWrapper rw,
long rt,
int batchCount,
Object[] args)
Add current completed count of the resource name.
|
void |
onError(ResourceWrapper rw,
Throwable throwable,
int batchCount,
Object[] args)
Add current exception count of the resource name.
|
void |
onPass(ResourceWrapper rw,
int batchCount,
Object[] args)
Add current pass count of the resource name.
|
addBlock, addException, addPass, addRt, addSuccess, decreaseThreadNum, increaseThreadNumvoid onPass(ResourceWrapper rw, int batchCount, Object[] args)
rw - resource representation (including resource name, traffic type, etc.)batchCount - count to addargs - additional arguments of the resource, eg. if the resource is a method name,
the args will be the parameters of the method.void onBlocked(ResourceWrapper rw, int batchCount, String origin, BlockException e, Object[] args)
rw - resource representation (including resource name, traffic type, etc.)batchCount - count to addorigin - the origin of caller (if present)e - the associated BlockExceptionargs - additional arguments of the resource, eg. if the resource is a method name,
the args will be the parameters of the method.void onComplete(ResourceWrapper rw, long rt, int batchCount, Object[] args)
rw - resource representation (including resource name, traffic type, etc.)batchCount - count to addrt - response time of current invocationargs - additional arguments of the resourcevoid onError(ResourceWrapper rw, Throwable throwable, int batchCount, Object[] args)
rw - resource representation (including resource name, traffic type, etc.)batchCount - count to addthrowable - exception related.args - additional arguments of the resourceCopyright © 2021 Alibaba Group. All rights reserved.