public enum BuiltInProperty extends Enum<BuiltInProperty>
RequestContextExporter.| Enum Constant and Description |
|---|
CLIENT_IP
"client.ip" - the IP address who initiated a request. |
ELAPSED_NANOS
"elapsed_nanos" - the amount of time in nanoseconds taken to handle the request. |
LOCAL_HOST
"local.host" - the host name part of the local socket address. |
LOCAL_IP
"local.ip" - the IP address part of the local socket address. |
LOCAL_PORT
"local.port" - the port number part of the local socket address. |
REMOTE_HOST
"remote.host" - the host name part of the remote socket address. |
REMOTE_IP
"remote.ip" - the IP address part of the remote socket address. |
REMOTE_PORT
"remote.port" - the port number part of the remote socket address. |
REQ_AUTHORITY
"req.authority" - the authority of the request, represented as "<hostname>[:<port>]". |
REQ_CONTENT_LENGTH
"req.content_length" - the byte-length of the request content. |
REQ_DIRECTION
"req.direction" - the direction of the request, which is "INBOUND" for servers and
"OUTBOUND" for clients. |
REQ_METHOD
"req.method" - the method name of the request, such as "GET" and "POST". |
REQ_NAME
"req.name" - the human-readable name of the request, such as RPC method name or annotated
service method name. |
REQ_PATH
"req.path" - the path of the request. |
REQ_QUERY
"req.query" - the query of the request. |
REQ_RPC_METHOD
"req.rpc_method" - the RPC method name of the request. |
REQ_RPC_PARAMS
"req.rpc_params" - the RPC parameter list, represented by Arrays.toString(Object...). |
RES_CONTENT_LENGTH
"res.content_length" - the byte-length of the response content. |
RES_RPC_RESULT
"res.rpc_result" - the RPC result value of the response. |
RES_STATUS_CODE
"res.status_code" - the protocol-specific integer representation of the response status code. |
SCHEME
|
TLS_CIPHER
"tls.cipher" - the current TLS cipher suite. |
TLS_PROTO
"tls.proto" - the current SSLSession.getProtocol() TLS protocol}. |
TLS_SESSION_ID
"tls.session_id" - the hexadecimal representation of the current
TLS session ID. |
| Modifier and Type | Method and Description |
|---|---|
static BuiltInProperty |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuiltInProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuiltInProperty REMOTE_HOST
"remote.host" - the host name part of the remote socket address. Unavailable if the connection
is not established yet.public static final BuiltInProperty REMOTE_IP
"remote.ip" - the IP address part of the remote socket address. Unavailable if the connection
is not established yet.public static final BuiltInProperty REMOTE_PORT
"remote.port" - the port number part of the remote socket address. Unavailable if the connection
is not established yet.public static final BuiltInProperty LOCAL_HOST
"local.host" - the host name part of the local socket address. Unavailable if the connection
is not established yet.public static final BuiltInProperty LOCAL_IP
"local.ip" - the IP address part of the local socket address. Unavailable if the connection
is not established yet.public static final BuiltInProperty LOCAL_PORT
"local.port" - the port number part of the local socket address. Unavailable if the connection
is not established yet.public static final BuiltInProperty CLIENT_IP
"client.ip" - the IP address who initiated a request. Unavailable if the connection is not
established yet.public static final BuiltInProperty SCHEME
public static final BuiltInProperty ELAPSED_NANOS
"elapsed_nanos" - the amount of time in nanoseconds taken to handle the request. Unavailable if
the request was not handled completely yet.public static final BuiltInProperty REQ_DIRECTION
"req.direction" - the direction of the request, which is "INBOUND" for servers and
"OUTBOUND" for clients.public static final BuiltInProperty REQ_AUTHORITY
"req.authority" - the authority of the request, represented as "<hostname>[:<port>]".
The port number is omitted when it is same with the default port number of the current Scheme.public static final BuiltInProperty REQ_PATH
"req.path" - the path of the request.public static final BuiltInProperty REQ_QUERY
"req.query" - the query of the request.public static final BuiltInProperty REQ_METHOD
"req.method" - the method name of the request, such as "GET" and "POST".public static final BuiltInProperty REQ_NAME
"req.name" - the human-readable name of the request, such as RPC method name or annotated
service method name. This property is often used as a meter tag or distributed trace's span name.public static final BuiltInProperty REQ_RPC_METHOD
"req.rpc_method" - the RPC method name of the request. Unavailable if the current request is not
an RPC request or is not decoded yet.public static final BuiltInProperty REQ_RPC_PARAMS
"req.rpc_params" - the RPC parameter list, represented by Arrays.toString(Object...).
Unavailable if the current request is not an RPC request or is not decoded yet.public static final BuiltInProperty REQ_CONTENT_LENGTH
"req.content_length" - the byte-length of the request content. Unavailable if the current
request is not fully received yet.public static final BuiltInProperty RES_STATUS_CODE
"res.status_code" - the protocol-specific integer representation of the response status code.
Unavailable if the current response is not fully sent yet.public static final BuiltInProperty RES_RPC_RESULT
"res.rpc_result" - the RPC result value of the response. Unavailable if the current response
is not fully sent yet.public static final BuiltInProperty RES_CONTENT_LENGTH
"res.content_length" - the byte-length of the response content. Unavailable if the current
response is not fully sent yet.public static final BuiltInProperty TLS_SESSION_ID
"tls.session_id" - the hexadecimal representation of the current
TLS session ID. Unavailable if TLS handshake is not finished or
the connection is not a TLS connection.public static final BuiltInProperty TLS_CIPHER
"tls.cipher" - the current TLS cipher suite.
Unavailable if TLS handshake is not finished or the connection is not a TLS connection, such as
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384".public static final BuiltInProperty TLS_PROTO
"tls.proto" - the current SSLSession.getProtocol() TLS protocol}.
Unavailable if TLS handshake is not finished or the connection is not a TLS connection, such as
"TLSv1.2".public static BuiltInProperty[] values()
for (BuiltInProperty c : BuiltInProperty.values()) System.out.println(c);
public static BuiltInProperty valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020 LeanCloud. All rights reserved.