diff options
author | Ian Cottrell <iancottrell@google.com> | 2020-04-20 12:14:12 -0400 |
---|---|---|
committer | Ian Cottrell <iancottrell@google.com> | 2020-04-23 17:21:36 +0000 |
commit | 7b212d60a147f93d1af51bcc1a27181ba1f3f9f6 (patch) | |
tree | f757e6314724539a672abff9021d20735827b7d9 /internal/lsp/cache/parse.go | |
parent | cf0cb92717bed0570dd0d024d51a0e39e1b2dd64 (diff) | |
download | golang-x-tools-7b212d60a147f93d1af51bcc1a27181ba1f3f9f6.tar.gz |
internal/event: renaming the main event API functions
event.Log removed
event.Print -> event.Log
event.Record -> event.Metric
event.StartSpan -> event.Start
In order to support this core now exposes the MakeEvent and Export functions.
Change-Id: Ic7550d88dbf400e32c419adbb61d1546c471841e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/229238
Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'internal/lsp/cache/parse.go')
-rw-r--r-- | internal/lsp/cache/parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/lsp/cache/parse.go b/internal/lsp/cache/parse.go index 4f01fcbc9..0bfb7f6f8 100644 --- a/internal/lsp/cache/parse.go +++ b/internal/lsp/cache/parse.go @@ -124,7 +124,7 @@ func hashParseKeys(phs []*parseGoHandle) string { } func parseGo(ctx context.Context, fset *token.FileSet, fh source.FileHandle, mode source.ParseMode) *parseGoData { - ctx, done := event.StartSpan(ctx, "cache.parseGo", tag.File.Of(fh.Identity().URI.Filename())) + ctx, done := event.Start(ctx, "cache.parseGo", tag.File.Of(fh.Identity().URI.Filename())) defer done() if fh.Identity().Kind != source.Go { |