Class ServletSpanNaming


  • public class ServletSpanNaming
    extends Object
    Helper container for tracking whether servlet integration should update server span name or not.
    • Method Detail

      • init

        public static io.opentelemetry.context.Context init​(io.opentelemetry.context.Context context)
      • shouldUpdateServerSpanName

        public static boolean shouldUpdateServerSpanName​(io.opentelemetry.context.Context context)
        Returns true, if servlet integration should update server span name. After server span name has been updated with setServletUpdatedServerSpanName this method will return false.
        Parameters:
        context - server context
        Returns:
        true, if the server span name should be updated by servlet integration, or false otherwise.
      • setServletUpdatedServerSpanName

        public static void setServletUpdatedServerSpanName​(io.opentelemetry.context.Context context)
        Indicate that the servlet integration has updated the name for the server span.
        Parameters:
        context - server context