Class ExportGroupBuilder

java.lang.Object
com.linecorp.armeria.common.logging.ExportGroupBuilder

public final class ExportGroupBuilder extends Object
Builds a new ExportGroup.
  • Method Details

    • build

      public ExportGroup build()
      Builds a new ExportGroup. If a prefix is specified, returns entries with the prefix.
    • prefix

      public ExportGroupBuilder prefix(String prefix)
      Specifies a prefix of the default export group.
    • builtIn

      public ExportGroupBuilder builtIn(BuiltInProperty property, String alias)
      Adds the specified BuiltInProperty to the export list. The specified alias will be used for the export key.
    • attr

      public ExportGroupBuilder attr(String alias, AttributeKey<?> attrKey)
      Adds the specified AttributeKey to the export list. The specified alias is used for the export key.
      Parameters:
      alias - the alias of the attribute to export
      attrKey - the key of the attribute to export
    • attr

      public ExportGroupBuilder attr(String alias, AttributeKey<?> attrKey, Function<?,String> stringifier)
      Adds the specified AttributeKey to the export list. The specified alias is used for the export key.
      Parameters:
      alias - the alias of the attribute to export
      attrKey - the key of the attribute to export
      stringifier - the Function that converts the attribute value into a String
    • requestHeader

      public ExportGroupBuilder requestHeader(CharSequence headerName)
      Adds the specified HTTP request header name to the export list.
    • requestHeader

      public ExportGroupBuilder requestHeader(CharSequence headerName, String alias)
      Adds the specified HTTP request header name to the export list. The specified alias is used for the export key.
    • responseHeader

      public ExportGroupBuilder responseHeader(CharSequence headerName)
      Adds the specified HTTP response header name to the export list.
    • responseHeader

      public ExportGroupBuilder responseHeader(CharSequence headerName, String alias)
      Adds the specified HTTP response header name to the export list. The specified alias is used for the export key.
    • keyPattern

      public ExportGroupBuilder keyPattern(String keyPattern)
      Adds the property represented by the specified key pattern to the export list. Please refer to the Logging contextual information in order to learn how to specify a key pattern.