Class SessionInstrumentation.SessionMethodAdvice

java.lang.Object
io.opentelemetry.javaagent.instrumentation.hibernate.v6_0.SessionInstrumentation.SessionMethodAdvice
Enclosing class:
SessionInstrumentation

public static class SessionInstrumentation.SessionMethodAdvice extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    endMethod(Throwable throwable, io.opentelemetry.javaagent.bootstrap.CallDepth callDepth, io.opentelemetry.javaagent.instrumentation.hibernate.HibernateOperation hibernateOperation, io.opentelemetry.context.Context context, io.opentelemetry.context.Scope scope)
     
    static void
    startMethod(org.hibernate.SharedSessionContract session, String name, String descriptor, Object arg0, Object arg1, io.opentelemetry.javaagent.bootstrap.CallDepth callDepth, io.opentelemetry.javaagent.instrumentation.hibernate.HibernateOperation hibernateOperation, 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

    • SessionMethodAdvice

      public SessionMethodAdvice()
  • Method Details

    • startMethod

      @OnMethodEnter(suppress=java.lang.Throwable.class) public static void startMethod(@This org.hibernate.SharedSessionContract session, @Origin("#m") String name, @Origin("#d") String descriptor, @Argument(0) Object arg0, @Argument(value=1,optional=true) Object arg1, @Local("otelCallDepth") io.opentelemetry.javaagent.bootstrap.CallDepth callDepth, @Local("otelHibernateOperation") io.opentelemetry.javaagent.instrumentation.hibernate.HibernateOperation hibernateOperation, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)
    • endMethod

      @OnMethodExit(onThrowable=java.lang.Throwable.class, suppress=java.lang.Throwable.class) public static void endMethod(@Thrown Throwable throwable, @Local("otelCallDepth") io.opentelemetry.javaagent.bootstrap.CallDepth callDepth, @Local("otelHibernateOperation") io.opentelemetry.javaagent.instrumentation.hibernate.HibernateOperation hibernateOperation, @Local("otelContext") io.opentelemetry.context.Context context, @Local("otelScope") io.opentelemetry.context.Scope scope)