1
0
mirror of https://github.com/golang/go synced 2024-11-06 05:26:11 -07:00
go/internal/telemetry/event
Ian Cottrell 540150da73 internal/telemetry: add type safe tag keys
This changes the way keys work, there is still a single internal key
implementation for performance reasons, but the public interface is a set of key
implementations that have type safe Of and Get methods.
This also hides the implemenation of Tag so that we can modify the storage form
and find a more efficient storage if needed.

Change-Id: I6a39cc75c2824c6a92e52d59f16e82e876f16e9c
Reviewed-on: https://go-review.googlesource.com/c/tools/+/223137
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
2020-03-18 13:29:43 +00:00
..
event.go internal/telemetry: add type safe tag keys 2020-03-18 13:29:43 +00:00
export.go internal/telemetry: allow ProcessEvent to modify the event 2020-03-18 13:22:01 +00:00
key.go internal/telemetry: add type safe tag keys 2020-03-18 13:29:43 +00:00
label.go internal/telemetry: add type safe tag keys 2020-03-18 13:29:43 +00:00
log.go internal/telemetry: unify the event handling to an event package 2020-03-12 03:58:56 +00:00
metric.go internal/telemetry: unify the event handling to an event package 2020-03-12 03:58:56 +00:00
tag.go internal/telemetry: add type safe tag keys 2020-03-18 13:29:43 +00:00
trace.go internal/telemetry: allow ProcessEvent to modify the event 2020-03-18 13:22:01 +00:00