Class AppServerBridge


  • public class AppServerBridge
    extends Object
    Helper container for Context attributes for transferring certain information between servlet integration and app-server server handler integrations.
    • Constructor Detail

      • AppServerBridge

        public AppServerBridge()
    • Method Detail

      • init

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

        public static boolean isPresent​(io.opentelemetry.context.Context ctx)
        Check whether given context contains AppServerBridge.
        Parameters:
        ctx - server context
        Returns:
        true if AppServerBridge is present in the context. false otherwise.
      • isServerSpanNameUpdatedFromServlet

        public static boolean isServerSpanNameUpdatedFromServlet​(io.opentelemetry.context.Context ctx)
        Returns true, if servlet integration has indicated, that it has updated the name for the server span.
        Parameters:
        ctx - server context
        Returns:
        true, if the server span name was updated by servlet integration, or false otherwise.
      • setServletUpdatedServerSpanName

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