Class ExportGroupBuilder
java.lang.Object
com.linecorp.armeria.common.logging.ExportGroupBuilder
Builds a new
ExportGroup
.-
Method Summary
Modifier and TypeMethodDescriptionattr
(String alias, AttributeKey<?> attrKey) Adds the specifiedAttributeKey
to the export list.attr
(String alias, AttributeKey<?> attrKey, Function<?, String> stringifier) Adds the specifiedAttributeKey
to the export list.build()
Builds a newExportGroup
.builtIn
(BuiltInProperty property, String alias) Adds the specifiedBuiltInProperty
to the export list.keyPattern
(String keyPattern) Adds the property represented by the specified key pattern to the export list.Specifies a prefix of the default export group.requestHeader
(CharSequence headerName) Adds the specified HTTP request header name to the export list.requestHeader
(CharSequence headerName, String alias) Adds the specified HTTP request header name to the export list.responseHeader
(CharSequence headerName) Adds the specified HTTP response header name to the export list.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.
-