Class RequestLoggingContext


  • public final class RequestLoggingContext
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestLoggingContext​(com.linecorp.armeria.server.ServiceRequestContext ctx, java.util.Optional<brave.Tracing> tracing)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addToLogs​(java.lang.String key, java.lang.String value)  
      void addToLogsAndSpan​(java.lang.String key, java.lang.String value)  
      static void put​(com.linecorp.armeria.common.RequestContext ctx, java.lang.String key, java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RequestLoggingContext

        @Inject
        public RequestLoggingContext​(com.linecorp.armeria.server.ServiceRequestContext ctx,
                                     java.util.Optional<brave.Tracing> tracing)
    • Method Detail

      • put

        public static void put​(com.linecorp.armeria.common.RequestContext ctx,
                               java.lang.String key,
                               java.lang.String value)
      • addToLogs

        public void addToLogs​(java.lang.String key,
                              java.lang.String value)
      • addToLogsAndSpan

        public void addToLogsAndSpan​(java.lang.String key,
                                     java.lang.String value)