Interface Instrumentation

All Known Implementing Classes:
NoopInstrumentation, OpenTelemetryForElasticsearch

public interface Instrumentation
Instrumentation for an Elasticsearch client. It allows creating a Instrumentation.Context for each request, with callbacks for the various stages of request and response processing.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A context with lifecycle callbacks for the various stages of request and response processing.
    static interface 
    A thread scope.
  • Method Summary

    Modifier and Type
    Method
    Description
    newContext(TRequest request, Endpoint<TRequest,?,?> endpoint)
    Create a context for a given request and the corresponding endpoint.
  • Method Details

    • newContext

      <TRequest> Instrumentation.Context newContext(TRequest request, Endpoint<TRequest,?,?> endpoint)
      Create a context for a given request and the corresponding endpoint.