commit | a36d68219264b1cb94c0c83c1fdfab5315957015 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Fri May 14 13:49:26 2021 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Wed Feb 02 21:41:57 2022 +0000 |
tree | f036aa54df6790ba7496bc5f2966aa6e8593dd43 | |
parent | 8176bd3bf02641480aa57900d370148cff889042 [diff] |
event/otel: metrics Add an event handler for OpenTelemetry metrics. The first time it sees an event.Metric, the handler creates a matching otel instrument and caches it. On each call, it uses the instrument to record the metric value. Change-Id: I07d6f40601c7d2a801ed9fbe3cf7c24d5698f3f1 Reviewed-on: https://go-review.googlesource.com/c/exp/+/320350 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <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.