commit | 50e41a6b1145aeeb7501c6cd38dcc10f573004e8 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Jun 10 10:10:47 2021 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Fri Jun 11 17:43:37 2021 +0000 |
tree | 17fc5d67c1e7ec1272bc5486cd2553dc63b442d0 | |
parent | 67a24dd5f9f8dce1095f44cae20431eaf6c6eeea [diff] |
event: semi-automatic trace duration metric If the call to Builder.End includes a DurationMetric label, then emit a Metric measuring the time between the parent Start call and the End. Also, fix a bug in Builder.Start where the synthesized End event didn't have the same labels as the Start event. Change-Id: If5e0598e69628e6300b8590a0c607426237aa2b7 Reviewed-on: https://go-review.googlesource.com/c/exp/+/326673 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com>
This subrepository holds experimental and deprecated (in the old
directory) packages.
The idea for this subrepository originated as the pkg/exp
directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get
these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.