Class RestClientInstrumentation.PerformRequestAsyncAdvice
java.lang.Object
io.opentelemetry.javaagent.instrumentation.elasticsearch.rest.v5_0.RestClientInstrumentation.PerformRequestAsyncAdvice
- Enclosing class:
- RestClientInstrumentation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidonEnter(String method, String endpoint, io.opentelemetry.instrumentation.elasticsearch.rest.internal.ElasticsearchRestRequest request, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope, org.elasticsearch.client.ResponseListener responseListener) static voidstopSpan(Throwable throwable, io.opentelemetry.instrumentation.elasticsearch.rest.internal.ElasticsearchRestRequest request, 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) String method, @Argument(1) String endpoint, @Local("otelRequest") io.opentelemetry.instrumentation.elasticsearch.rest.internal.ElasticsearchRestRequest request, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope, @Argument(value=5,readOnly=false) org.elasticsearch.client.ResponseListener responseListener) -
stopSpan
@OnMethodExit(onThrowable=java.lang.Throwable.class, suppress=java.lang.Throwable.class) public static void stopSpan(@Thrown Throwable throwable, @Local("otelRequest") io.opentelemetry.instrumentation.elasticsearch.rest.internal.ElasticsearchRestRequest request, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)
-