Class ExportGroupBuilder
java.lang.Object
com.linecorp.armeria.common.logging.ExportGroupBuilder
public final class ExportGroupBuilder extends Object
Builds a new
ExportGroup
.-
Method Summary
Modifier and Type Method Description ExportGroupBuilder
attr(String alias, AttributeKey<?> attrKey)
Adds the specifiedAttributeKey
to the export list.ExportGroupBuilder
attr(String alias, AttributeKey<?> attrKey, Function<?,String> stringifier)
Adds the specifiedAttributeKey
to the export list.ExportGroup
build()
Builds a newExportGroup
.ExportGroupBuilder
builtIn(BuiltInProperty property, String alias)
Adds the specifiedBuiltInProperty
to the export list.ExportGroupBuilder
keyPattern(String keyPattern)
Adds the property represented by the specified key pattern to the export list.ExportGroupBuilder
prefix(String prefix)
Specifies a prefix of the default export group.ExportGroupBuilder
requestHeader(CharSequence headerName)
Adds the specified HTTP request header name to the export list.ExportGroupBuilder
requestHeader(CharSequence headerName, String alias)
Adds the specified HTTP request header name to the export list.ExportGroupBuilder
responseHeader(CharSequence headerName)
Adds the specified HTTP response header name to the export list.ExportGroupBuilder
responseHeader(CharSequence headerName, String alias)
Adds the specified HTTP response header name to the export list.
-
Method Details
-
build
Builds a newExportGroup
. If a prefix is specified, returns entries with the prefix. -
prefix
Specifies a prefix of the default export group. -
builtIn
Adds the specifiedBuiltInProperty
to the export list. The specifiedalias
will be used for the export key. -
attr
Adds the specifiedAttributeKey
to the export list. The specifiedalias
is used for the export key.- Parameters:
alias
- the alias of the attribute to exportattrKey
- the key of the attribute to export
-
attr
public ExportGroupBuilder attr(String alias, AttributeKey<?> attrKey, Function<?,String> stringifier)Adds the specifiedAttributeKey
to the export list. The specifiedalias
is used for the export key. -
requestHeader
Adds the specified HTTP request header name to the export list. -
requestHeader
Adds the specified HTTP request header name to the export list. The specifiedalias
is used for the export key. -
responseHeader
Adds the specified HTTP response header name to the export list. -
responseHeader
Adds the specified HTTP response header name to the export list. The specifiedalias
is used for the export key. -
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.
-