Class SessionMethodUtils


  • public final class SessionMethodUtils
    extends Object
    • Field Detail

      • SCOPE_ONLY_METHODS

        public static final Set<String> SCOPE_ONLY_METHODS
    • 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,
                                                                                           String entityName)
      • startSpanFromQuery

        public static <TARGET> io.opentelemetry.context.Context startSpanFromQuery​(io.opentelemetry.javaagent.instrumentation.api.ContextStore<TARGET,​io.opentelemetry.context.Context> contextStore,
                                                                                   TARGET spanKey,
                                                                                   String query)
      • end

        public static void end​(@Nullable io.opentelemetry.context.Context context,
                               Throwable throwable)
      • 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)
      • getSessionMethodSpanName

        public static String getSessionMethodSpanName​(String methodName)