Documentation
¶
Index ¶
Constants ¶
View Source
const LARGE_BYTES_LIMIT = 20_000
View Source
const SMALL_BYTES_LIMIT = 1_000
these limits are to make sure the log packet stays below 65k as required by UDP. * the SMALL_BYTES_LIMIT is for headers normally governed by a browser, including: referer, user-agent, x-forwarded-for, x-forwarded-proto. * the LARGE_BYTES_LIMIT is for "extra headers" (user set headers) and URIs including query params.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessLogRecord ¶
type AccessLogRecord struct {
Request *http.Request
HeadersOverride http.Header
StatusCode int
RouteEndpoint *route.Endpoint
RoundtripStartedAt time.Time
FirstByteAt time.Time
RoundtripFinishedAt time.Time
AppRequestStartedAt time.Time
AppRequestFinishedAt time.Time
BodyBytesSent int
RequestBytesReceived int
ExtraHeadersToLog []string
DisableXFFLogging bool
DisableSourceIPLogging bool
RedactQueryParams string
RouterError string
// contains filtered or unexported fields
}
AccessLogRecord represents a single access log line
func (*AccessLogRecord) ApplicationID ¶
func (r *AccessLogRecord) ApplicationID() string
ApplicationID returns the application ID that corresponds with the access log
func (*AccessLogRecord) LogMessage ¶
func (r *AccessLogRecord) LogMessage() string
LogMessage returns a string representation of the access log line
func (*AccessLogRecord) SendLog ¶
func (r *AccessLogRecord) SendLog(ls LogSender)
Click to show internal directories.
Click to hide internal directories.