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 Details

    • onStart

      public void onStart(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, ElasticsearchRestRequest request)
      Specified by:
      onStart in interface io.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:
      onEnd in interface io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<ElasticsearchRestRequest,org.elasticsearch.client.Response>