go/internal/event/export
Rob Findley fa05545715 internal/lsp/debug: add a facility to track known bugs
Sometimes users report issues related to edge cases in Gopls that aren't
reproducible. In some of these cases, we end up guarding against
conditions that shouldn't be possible, which is an unfortunately fragile
solution.

Add a new debug.Bug function to both annotate such branches as known
bugs, and help find them when they reoccur.  For now this just records
them in the debug server, but in the future we could send the user a
message to the effect of "hey, a known bug has occurred" for debug
builds of gopls.

Also included are some minor cosmetic fixes.

Change-Id: I95df0caf2c81f430661cabd573ce8e338fa69934
Reviewed-on: https://go-review.googlesource.com/c/tools/+/318369
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2021-05-10 23:21:19 +00:00
..
eventtest internal/event: move event/core.Tag to event/label.Label 2020-04-23 18:13:33 +00:00
metric internal/event: remove the event.eventType type 2020-04-27 15:30:19 +00:00
ocagent all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
prometheus internal/lsp/debug: add a facility to track known bugs 2021-05-10 23:21:19 +00:00
id.go
log.go internal/event: improve the logging of events 2020-05-11 17:49:55 +00:00
log_test.go internal/event: change event.At to be a private field 2020-04-23 18:13:49 +00:00
printer.go internal/event: improve the logging of events 2020-05-11 17:49:55 +00:00
tag.go internal/event: remove the event.eventType type 2020-04-27 15:30:19 +00:00
trace.go internal/event: remove the event.eventType type 2020-04-27 15:30:19 +00:00