Class ElasticsearchTransportExperimentalAttributesExtractor
- java.lang.Object
-
- io.opentelemetry.javaagent.instrumentation.elasticsearch.transport.ElasticsearchTransportExperimentalAttributesExtractor
-
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<ElasticTransportRequest,org.elasticsearch.action.ActionResponse>
public class ElasticsearchTransportExperimentalAttributesExtractor extends Object implements io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<ElasticTransportRequest,org.elasticsearch.action.ActionResponse>
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchTransportExperimentalAttributesExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonEnd(io.opentelemetry.api.common.AttributesBuilder attributes, ElasticTransportRequest request, org.elasticsearch.action.ActionResponse response, Throwable error)voidonStart(io.opentelemetry.api.common.AttributesBuilder attributes, ElasticTransportRequest transportRequest)
-
-
-
Method Detail
-
onStart
public void onStart(io.opentelemetry.api.common.AttributesBuilder attributes, ElasticTransportRequest transportRequest)- Specified by:
onStartin interfaceio.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<ElasticTransportRequest,org.elasticsearch.action.ActionResponse>
-
onEnd
public void onEnd(io.opentelemetry.api.common.AttributesBuilder attributes, ElasticTransportRequest request, org.elasticsearch.action.ActionResponse response, @Nullable Throwable error)- Specified by:
onEndin interfaceio.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<ElasticTransportRequest,org.elasticsearch.action.ActionResponse>
-
-