-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SourceAddr and TLS metadata to lj.Batch #29
Conversation
Add connection metadata to `lj.Batch`. This provides the source address of the connection and TLS metadata (like peer certification for mTLS).
e81b4cb
to
29b0133
Compare
in *bufio.Reader | ||
tlsState *tls.ConnectionState | ||
remoteAddr string | ||
buf []byte |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are confident that it's nearly always the case that the buf
is not grown beyond 64 bytes long, maybe make it be a slice of another [64]byte
field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not confident on this so I'm going to leave it as is. But good idea.
Add connection metadata to
lj.Batch
. This provides the source addressof the connection and TLS metadata (like peer certification for mTLS).