Class JaxrsContextPath


  • public final class JaxrsContextPath
    extends Object
    Helper container for storing context path for jax-rs requests. Jax-rs context path is the path where jax-rs servlet is mapped or the value of ApplicationPath annotation. Span name is built by combining servlet context path from ServletContextPath jax-rs context path and the Path annotation from called method or class.
    • Method Detail

      • init

        public static @Nullable io.opentelemetry.context.Context init​(io.opentelemetry.context.Context context,
                                                                      String path)
      • prepend

        public static String prepend​(io.opentelemetry.context.Context context,
                                     String spanName)