Skip to content

Instantly share code, notes, and snippets.

View carlpett's full-sized avatar

Calle Pettersson carlpett

View GitHub Profile

Keybase proof

I hereby claim:

  • I am carlpett on github.
  • I am carlpett (https://keybase.io/carlpett) on keybase.
  • I have a public key ASDgqi8Y7j3XiNldiVh5_AhT0g2xwEsWDe0DKVnht9xJ0go

To claim this, I am signing this object:

Many programs will be outputting the their errors directly onto stdout/stderr, and then ingesting these logs with some form of log aggregation tool (Logstash/Splunk/...). With multi-line errors, this requires configuring these tools to recognize log entries spanning multiple lines. To make this easier, it might make sense to have a common prefix on all following lines, rather than alternating spaces and triple-dash as in the examples:

write users database:
    more detail here
    /path/to/database.go:111
--- call myserver.Method:
    /path/to/grpc.go:222
--- dial myserver:3333:
 /path/to/net/dial.go:333
@carlpett
carlpett / data.csv
Created May 20, 2020 18:23
podman images timings
NumImages RealTime UserTime SystemTime
127 0.81 0.63 0.40
128 0.84 0.69 0.37
129 0.85 0.69 0.37
130 0.89 0.73 0.40
131 0.92 0.71 0.43
132 0.91 0.75 0.40
133 0.95 0.76 0.43
134 0.98 0.78 0.45
135 0.98 0.80 0.43