public interface RequestOnlyLog extends RequestLogAccess
Request.| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.Channel |
channel()
Returns the Netty
Channel which handled the Request. |
ClientConnectionTimings |
connectionTimings()
Returns the
ClientConnectionTimings of the Request. |
String |
name()
Returns the human-readable simple name of the
Request, such as RPC method name or annotated
service method name. |
Object |
rawRequestContent()
Returns the low-level content object of the
Request, which is specific
to the SerializationFormat. |
Throwable |
requestCause()
Returns the cause of request processing failure.
|
Object |
requestContent()
Returns the high-level content object of the
Request, which is specific
to the SerializationFormat. |
String |
requestContentPreview()
Returns the preview of request content of the
Request. |
default long |
requestDurationNanos()
Returns the duration that was taken to consume or produce the request completely, in nanoseconds.
|
long |
requestEndTimeNanos()
Returns the time when the processing of the request finished, in nanoseconds.
|
Long |
requestFirstBytesTransferredTimeNanos()
Returns the time when the first bytes of the request headers were transferred over the wire.
|
RequestHeaders |
requestHeaders()
Returns the
RequestHeaders. |
long |
requestLength()
Returns the length of the request content.
|
long |
requestStartTimeMicros()
Returns the time when the processing of the request started, in microseconds since the epoch.
|
long |
requestStartTimeMillis()
Returns the time when the processing of the request started, in milliseconds since the epoch.
|
long |
requestStartTimeNanos()
Returns the time when the processing of the request started, in nanoseconds.
|
HttpHeaders |
requestTrailers()
Returns the HTTP trailers of the
Request. |
Scheme |
scheme()
|
SessionProtocol |
sessionProtocol()
Returns the
SessionProtocol of the Request. |
SSLSession |
sslSession()
Returns the
SSLSession of the connection which handled the Request. |
default String |
toStringRequestOnly()
Returns the string representation of the
Request, with no sanitization of headers or content. |
default String |
toStringRequestOnly(Function<? super HttpHeaders,?> headersSanitizer,
Function<Object,?> contentSanitizer)
Returns the string representation of the
Request. |
String |
toStringRequestOnly(Function<? super RequestHeaders,?> headersSanitizer,
Function<Object,?> contentSanitizer,
Function<? super HttpHeaders,?> trailersSanitizer)
Returns the string representation of the
Request. |
availabilityStamp, children, context, ensureAvailable, ensureAvailable, ensureAvailable, ensureComplete, ensureRequestComplete, isAvailable, isAvailable, isAvailable, isComplete, isRequestComplete, partial, whenAvailable, whenAvailable, whenAvailable, whenComplete, whenRequestCompletelong requestStartTimeMicros()
RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_START_TIMElong requestStartTimeMillis()
RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_START_TIMElong requestStartTimeNanos()
RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_START_TIMELong requestFirstBytesTransferredTimeNanos()
null if nothing was transferred.RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_FIRST_BYTES_TRANSFERRED_TIMElong requestEndTimeNanos()
RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_END_TIMEdefault long requestDurationNanos()
RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_END_TIMElong requestLength()
RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_LENGTHThrowable requestCause()
null if the request was processed completely.RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_CAUSEio.netty.channel.Channel channel()
Channel which handled the Request.Channel, or null if the Request has failed even before
a connection is established.RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.SESSIONSSLSession sslSession()
SSLSession of the connection which handled the Request.SSLSession, or null if the Request has failed even before
a TLS connection is established or the connection does not use TLS.RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.SESSIONSessionProtocol sessionProtocol()
SessionProtocol of the Request.RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.SESSIONClientConnectionTimings connectionTimings()
ClientConnectionTimings of the Request.ClientConnectionTimings if the Request involved a new connection attempt,
or null otherwise.RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.SESSIONScheme scheme()
RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.SCHEMEString name()
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.RequestHeaders requestHeaders()
RequestHeaders. If the Request was not received or sent at all,
it will return a dummy RequestHeaders whose :authority and :path are
set to "?", :scheme is set to "http" or "https", and :method is
set to "UNKNOWN".RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_HEADERSObject requestContent()
Request, which is specific
to the SerializationFormat.RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_CONTENTObject rawRequestContent()
Request, which is specific
to the SerializationFormat.ThriftCall for Thrift, or null for othersRequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_CONTENTString requestContentPreview()
Request.
Note that a Service or a Client must be decorated with ContentPreviewingService
or ContentPreviewingClient decorators respectively to enable the content preview.null if the preview is disabled.RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_CONTENT_PREVIEWHttpHeaders requestTrailers()
Request.RequestLogAvailabilityException - if the property is not available yet.RequestLogProperty.REQUEST_TRAILERSdefault String toStringRequestOnly()
Request, with no sanitization of headers or content.default String toStringRequestOnly(Function<? super HttpHeaders,?> headersSanitizer, Function<Object,?> contentSanitizer)
Request. This method is a shortcut for:
toStringRequestOnly(headersSanitizer, contentSanitizer, headersSanitizer);
String toStringRequestOnly(Function<? super RequestHeaders,?> headersSanitizer, Function<Object,?> contentSanitizer, Function<? super HttpHeaders,?> trailersSanitizer)
Request.headersSanitizer - a Function for sanitizing HTTP headers for logging. The result of the
Function is what is actually logged as headers.contentSanitizer - a Function for sanitizing request content for logging. The result of the
Function is what is actually logged as content.trailersSanitizer - a Function for sanitizing HTTP trailers for logging. The result of the
Function is what is actually logged as trailers.Copyright © 2020 LeanCloud. All rights reserved.