I have built a quick demo that shows that the labels are `inherited` by the
spawning goroutine for profiling. (I clearly hit the golang-nuts button too
quickly for this question)
https://play.golang.org/p/SbgtWB1fIKB
Here we have a fairly pointless function which calculates Fibonacci a
number
Please note the original example won't run properly. `pprof.Labels()` takes
an even number of strings, since it's setting key/value pairs.
func handleFoo(ctx context.Context) {
labels := pprof.Labels("foo", "foo")
pprof.Do(ctx, labels, func(ctx context.Context) {
go interestingFun