Class RestClientInstrumentation.PerformRequestAdvice

java.lang.Object
io.opentelemetry.javaagent.instrumentation.opensearch.rest.v1_0.RestClientInstrumentation.PerformRequestAdvice
Enclosing class:
RestClientInstrumentation

public static class RestClientInstrumentation.PerformRequestAdvice extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    onEnter(org.opensearch.client.Request request, io.opentelemetry.javaagent.instrumentation.opensearch.rest.OpenSearchRestRequest otelRequest, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope)
     
    static void
    stopSpan(org.opensearch.client.Response response, Throwable throwable, io.opentelemetry.javaagent.instrumentation.opensearch.rest.OpenSearchRestRequest otelRequest, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PerformRequestAdvice

      public PerformRequestAdvice()
  • Method Details

    • onEnter

      @OnMethodEnter(suppress=java.lang.Throwable.class) public static void onEnter(@Argument(0) org.opensearch.client.Request request, @Local("otelRequest") io.opentelemetry.javaagent.instrumentation.opensearch.rest.OpenSearchRestRequest otelRequest, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)
    • stopSpan

      @OnMethodExit(onThrowable=java.lang.Throwable.class, suppress=java.lang.Throwable.class) public static void stopSpan(@Return org.opensearch.client.Response response, @Thrown Throwable throwable, @Local("otelRequest") io.opentelemetry.javaagent.instrumentation.opensearch.rest.OpenSearchRestRequest otelRequest, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)