Class SessionMethodUtils


  • public class SessionMethodUtils
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <S,​T>
      void
      attachSpanFromStore​(io.opentelemetry.javaagent.instrumentation.api.ContextStore<S,​io.opentelemetry.context.Context> sourceContextStore, S source, io.opentelemetry.javaagent.instrumentation.api.ContextStore<T,​io.opentelemetry.context.Context> targetContextStore, T target)  
      static void end​(@Nullable io.opentelemetry.context.Context context, Throwable throwable, String operationName, Object entity)  
      static <TARGET,​ENTITY>
      io.opentelemetry.context.Context
      startSpanFrom​(io.opentelemetry.javaagent.instrumentation.api.ContextStore<TARGET,​io.opentelemetry.context.Context> contextStore, TARGET spanKey, String operationName, ENTITY entity)  
    • Field Detail

      • SCOPE_ONLY_METHODS

        public static final Set<String> SCOPE_ONLY_METHODS
    • Constructor Detail

      • SessionMethodUtils

        public SessionMethodUtils()
    • Method Detail

      • startSpanFrom

        public static <TARGET,​ENTITY> io.opentelemetry.context.Context startSpanFrom​(io.opentelemetry.javaagent.instrumentation.api.ContextStore<TARGET,​io.opentelemetry.context.Context> contextStore,
                                                                                           TARGET spanKey,
                                                                                           String operationName,
                                                                                           ENTITY entity)
      • end

        public static void end​(@Nullable io.opentelemetry.context.Context context,
                               Throwable throwable,
                               String operationName,
                               Object entity)
      • attachSpanFromStore

        public static <S,​T> void attachSpanFromStore​(io.opentelemetry.javaagent.instrumentation.api.ContextStore<S,​io.opentelemetry.context.Context> sourceContextStore,
                                                           S source,
                                                           io.opentelemetry.javaagent.instrumentation.api.ContextStore<T,​io.opentelemetry.context.Context> targetContextStore,
                                                           T target)