Class HttpClientInstrumentation.SendAdvice

java.lang.Object
io.opentelemetry.javaagent.instrumentation.httpclient.HttpClientInstrumentation.SendAdvice
Enclosing class:
HttpClientInstrumentation

public static class HttpClientInstrumentation.SendAdvice extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    methodEnter(java.net.http.HttpRequest httpRequest, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope)
     
    static void
    methodExit(java.net.http.HttpRequest httpRequest, java.net.http.HttpResponse<?> httpResponse, Throwable throwable, 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

    • SendAdvice

      public SendAdvice()
  • Method Details

    • methodEnter

      @OnMethodEnter(suppress=java.lang.Throwable.class) public static void methodEnter(@Argument(0) java.net.http.HttpRequest httpRequest, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)
    • methodExit

      @OnMethodExit(onThrowable=java.lang.Throwable.class, suppress=java.lang.Throwable.class) public static void methodExit(@Argument(0) java.net.http.HttpRequest httpRequest, @Return java.net.http.HttpResponse<?> httpResponse, @Thrown Throwable throwable, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)