spacemonkeygo / monkit

A flexible process data collection, metrics, monitoring, instrumentation, and tracing client library for Go
http://godoc.org/gopkg.in/spacemonkeygo/monkit.v2
Apache License 2.0
480 stars 33 forks source link

format []interface{} and []uint8 args nicer #37

Closed egonelbre closed 3 years ago

egonelbre commented 3 years ago

This will output the monitoring line:

defer mon.Task()(&ctx, "query", []interface{}{[]byte{1, 2, 3}, "args"})(&err)

-->

[6842182776827799015] /main.DoStuff("query", {[]uint8(0x010203), "args"}) (elapsed: 160.7106ms)