Class RestClientInstrumentation.PerformRequestAsyncAdvice
java.lang.Object
io.opentelemetry.javaagent.instrumentation.opensearch.rest.v1_0.RestClientInstrumentation.PerformRequestAsyncAdvice
- Enclosing class:
- RestClientInstrumentation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidonEnter(org.opensearch.client.Request request, org.opensearch.client.ResponseListener responseListener, io.opentelemetry.javaagent.instrumentation.opensearch.rest.OpenSearchRestRequest otelRequest, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope) static voidstopSpan(Throwable throwable, io.opentelemetry.javaagent.instrumentation.opensearch.rest.OpenSearchRestRequest otelRequest, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope)
-
Constructor Details
-
PerformRequestAsyncAdvice
public PerformRequestAsyncAdvice()
-
-
Method Details
-
onEnter
@OnMethodEnter(suppress=java.lang.Throwable.class) public static void onEnter(@Argument(0) org.opensearch.client.Request request, @Argument(value=1,readOnly=false) org.opensearch.client.ResponseListener responseListener, @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(@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)
-