1
0
mirror of https://github.com/golang/go synced 2024-11-18 19:24:39 -07:00
go/internal/telemetry/event
Rob Findley 26dd2a56eb internal/telemetry/export: guard against NPE when merging tag maps
In a separate CL, I was getting a nil pointer exception looking up a tag
value in a tag map chain where one map was nil. To avoid this, check
that maps are non-nil when merging them into a chain.

Change-Id: Ie2ec4865e1ed62f91b9b146d2f2b56f48c156043
Reviewed-on: https://go-review.googlesource.com/c/tools/+/229130
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-04-21 14:47:19 +00:00
..
event.go internal/telemetry: expose the TagOf* and Unpack* methods 2020-04-16 04:05:21 +00:00
export.go internal/lsp: make event directly implement TagMap 2020-04-06 17:24:01 +00:00
key.go internal/telemetry: add tag value formatting to the Key 2020-04-16 04:05:32 +00:00
label.go internal/telemetry: add fast non variadic event functions 2020-03-29 02:57:12 +00:00
log.go internal/telemetry: add support for using telemetry in tests 2020-04-20 21:04:52 +00:00
metric.go internal/telemetry: add fast non variadic event functions 2020-03-29 02:57:12 +00:00
tag_test.go internal/telemetry/export: guard against NPE when merging tag maps 2020-04-21 14:47:19 +00:00
tag.go internal/telemetry/export: guard against NPE when merging tag maps 2020-04-21 14:47:19 +00:00
trace.go internal/telemetry: minor improvement to span events 2020-03-29 02:58:19 +00:00