You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/logtail
Joe Tsai fe73052985 logtail: avoid bytes.Buffer allocation
Re-use a pre-allocated bytes.Buffer struct and
shallow the copy the result of bytes.NewBuffer into it
to avoid allocating the struct.

Note that we're only reusing the bytes.Buffer struct itself
and not the underling []byte temporarily stored within it.

Updates #cleanup
Updates tailscale/corp#18514
Updates golang/go#67004

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
1 month ago
..
backoff logtail: use tstime (#8607) 11 months ago
example all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 1 year ago
filch all: use Go 1.22 range-over-int 2 months ago
.gitignore Move Linux client & common packages into a public repo. 4 years ago
README.md Move Linux client & common packages into a public repo. 4 years ago
api.md all: replace logtail.{Public,Private}ID with logid.{Public,Private}ID (#7404) 1 year ago
buffer.go logtail: require Buffer.Write to not retain the provided slice (#11617) 2 months ago
logtail.go logtail: avoid bytes.Buffer allocation 1 month ago
logtail_test.go all: use Go 1.22 range-over-int 2 months ago

README.md

Tailscale Logs Service

This github repository contains libraries, documentation, and examples for working with the public API of the tailscale logs service.

For a very quick introduction to the core features, read the API docs and peruse the logs reprocessing example.

For more information, write to info@tailscale.io.