I wanted to accumulate fields and emit 1 slog record for each request. I set up a map in a middleware and then adding to it during flight. But that feels a bit janky.
I wanted to accumulate fields and emit 1 slog record for each request. I set up a map in a middleware and then adding to it during flight. But that feels a bit janky.
ctx, l := setup()
where l is a handle to things running "locally". Like a cli for my service api, the db, localstack s3.
ctx, l := setup()
where l is a handle to things running "locally". Like a cli for my service api, the db, localstack s3.
youtu.be/foHfPB6H19c?...
youtu.be/foHfPB6H19c?...
In tests I usually `t.Logf("%#v", got)` then copy paste that in as the `want` variable. Now I can throw out my dodgy treesitter scripting and use gopls proper instead 🚀
In tests I usually `t.Logf("%#v", got)` then copy paste that in as the `want` variable. Now I can throw out my dodgy treesitter scripting and use gopls proper instead 🚀
slog.Error("something wrong", "error", err)
or
slog.Errorf(fmt.Errorf("something wrong: %w", err))
slog.Error("something wrong", "error", err)
or
slog.Errorf(fmt.Errorf("something wrong: %w", err))
So ffmpeg flags: -c:a libopus -vbr off
So ffmpeg flags: -c:a libopus -vbr off
foo.bar.baz {
reverse_proxy localhost:8080
}
Just remember to open those firewalls... all of them...
foo.bar.baz {
reverse_proxy localhost:8080
}
Just remember to open those firewalls... all of them...
github.com/grafana/clic...
Would be interesting to compare this against other self-hosted obs.
github.com/grafana/clic...
Would be interesting to compare this against other self-hosted obs.
Favoring Open Telemetry mostly because I like the idea and want it to be used widely. Even if the API is sometimes awkward. #golang
Favoring Open Telemetry mostly because I like the idea and want it to be used widely. Even if the API is sometimes awkward. #golang
Only wish slog.LogContext was shorter...
Only wish slog.LogContext was shorter...
utf-8? of course not lol
is it utf-16? nonono
could it be latin-1? dream on
so windows-1252? get baited sucker
Code Page 865 for "nordic languages", Microsoft what are you smoking.
utf-8? of course not lol
is it utf-16? nonono
could it be latin-1? dream on
so windows-1252? get baited sucker
Code Page 865 for "nordic languages", Microsoft what are you smoking.