@Activate(group="consumer",
order=-1,
onClass="io.micrometer.observation.NoopObservationRegistry")
public class ObservationSenderFilter
extends Object
implements ClusterFilter, BaseFilter.Listener, org.apache.dubbo.rpc.model.ScopeModelAware
Filter that creates an Observation around the outgoing message.BaseFilter.Listener| Constructor and Description |
|---|
ObservationSenderFilter(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) |
| Modifier and Type | Method and Description |
|---|---|
Result |
invoke(Invoker<?> invoker,
Invocation invocation) |
void |
onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
onResponse(Result appResponse,
Invoker<?> invoker,
Invocation invocation) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetApplicationModel, setFrameworkModel, setModuleModel, setScopeModelpublic ObservationSenderFilter(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException
invoke in interface BaseFilterRpcExceptionpublic void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)
onResponse in interface BaseFilter.Listenerpublic void onError(Throwable t, Invoker<?> invoker, Invocation invocation)
onError in interface BaseFilter.ListenerCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.