Class ElasticsearchClientAttributeExtractor
java.lang.Object
io.opentelemetry.instrumentation.elasticsearch.rest.internal.ElasticsearchClientAttributeExtractor
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<ElasticsearchRestRequest,org.elasticsearch.client.Response>
public class ElasticsearchClientAttributeExtractor
extends Object
implements io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<ElasticsearchRestRequest,org.elasticsearch.client.Response>
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonEnd(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context context, ElasticsearchRestRequest request, org.elasticsearch.client.Response response, Throwable error) voidonStart(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, ElasticsearchRestRequest request)
-
Method Details
-
onStart
public void onStart(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, ElasticsearchRestRequest request) - Specified by:
onStartin interfaceio.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<ElasticsearchRestRequest,org.elasticsearch.client.Response>
-
onEnd
public void onEnd(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context context, ElasticsearchRestRequest request, @Nullable org.elasticsearch.client.Response response, @Nullable Throwable error) - Specified by:
onEndin interfaceio.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<ElasticsearchRestRequest,org.elasticsearch.client.Response>
-