Class RestResponseListener
java.lang.Object
io.opentelemetry.instrumentation.elasticsearch.rest.internal.RestResponseListener
- All Implemented Interfaces:
org.elasticsearch.client.ResponseListener
public final class RestResponseListener
extends Object
implements org.elasticsearch.client.ResponseListener
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Constructor Summary
ConstructorsConstructorDescriptionRestResponseListener(org.elasticsearch.client.ResponseListener listener, io.opentelemetry.context.Context parentContext, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<ElasticsearchRestRequest, org.elasticsearch.client.Response> instrumenter, io.opentelemetry.context.Context context, ElasticsearchRestRequest request) -
Method Summary
-
Constructor Details
-
RestResponseListener
public RestResponseListener(org.elasticsearch.client.ResponseListener listener, io.opentelemetry.context.Context parentContext, io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<ElasticsearchRestRequest, org.elasticsearch.client.Response> instrumenter, io.opentelemetry.context.Context context, ElasticsearchRestRequest request)
-
-
Method Details
-
onSuccess
public void onSuccess(org.elasticsearch.client.Response response) - Specified by:
onSuccessin interfaceorg.elasticsearch.client.ResponseListener
-
onFailure
- Specified by:
onFailurein interfaceorg.elasticsearch.client.ResponseListener
-