aboutsummaryrefslogtreecommitdiff
path: root/internal/lsp/debug/metrics.go
diff options
context:
space:
mode:
authorIan Cottrell <iancottrell@google.com>2020-04-21 09:41:57 -0400
committerIan Cottrell <iancottrell@google.com>2020-04-27 15:30:19 +0000
commita90b7300be7c0e2a1e83e1753a958fa84c930f72 (patch)
tree40837cc8bd2df36f7e56d727e8bbbcacaee1b3a8 /internal/lsp/debug/metrics.go
parentbed5418863f7348dd845e8d45004884bb89e8473 (diff)
downloadgolang-x-tools-a90b7300be7c0e2a1e83e1753a958fa84c930f72.tar.gz
internal/event: remove the event.eventType type
Instead of tagging events with their type, instead we infer the type from the label pattern. The standard event creators all have a matching test that returns true if the the labels pattern matches the ones that would be built by the creator. Spans and logs already have a unique label pattern, other event types required a special label marker. This makes the system much more extensible, and also cleans up some the API. Change-Id: I1fbc9ec07aa84ead6c12bbd5ca65b13b605bfa4a Reviewed-on: https://go-review.googlesource.com/c/tools/+/229242 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Diffstat (limited to 'internal/lsp/debug/metrics.go')
0 files changed, 0 insertions, 0 deletions