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
Josh Bleecher Snyder 278e7de9c9 logtail: always send a json array
The code goes to some effort to send a single JSON object
when there's only a single line and a JSON array when there
are multiple lines.

It makes the code more complex and more expensive;
when we add a second line, we have to use a second buffer
to duplicate the first one after adding a leading square brackets.

The savings come to two bytes. Instead, always send an array.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
3 years ago
..
backoff backoff: update to Go style, document a bit, make 30s explicit 4 years ago
example logtail, logpolicy: remove an unidiomatic use of an interface 4 years ago
filch logtail/filch: preallocate a scanner buffer 3 years ago
.gitignore
README.md
api.md
buffer.go logtail: rename the unused CheckLogs to DrainLogs 5 years ago
id.go logtail: reduce PublicID.UnmarshalText from 2 allocs to 0 4 years ago
id_test.go logtail: add ParsePublicID that doesn't allocate 5 years ago
logtail.go logtail: always send a json array 3 years ago
logtail_test.go logtail: always send a json array 3 years 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.