Class 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 Detail

      • ElasticsearchTransportExperimentalAttributesExtractor

        public ElasticsearchTransportExperimentalAttributesExtractor()
    • Method Detail

      • onStart

        public void onStart​(io.opentelemetry.api.common.AttributesBuilder attributes,
                            ElasticTransportRequest transportRequest)
        Specified by:
        onStart in interface io.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:
        onEnd in interface io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<ElasticTransportRequest,​org.elasticsearch.action.ActionResponse>