mirror of https://github.com/golang/go.git
internal/telemetry: remove all the event aliases
Change-Id: I6d9a25be2b9dbba2385e13810e3c9e79c5f67aa5 Reviewed-on: https://go-review.googlesource.com/c/tools/+/222559 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
206ec5b82a
commit
68dc0f3515
|
|
@ -1,20 +0,0 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package telemetry
|
||||
|
||||
import "golang.org/x/tools/internal/telemetry/event"
|
||||
|
||||
type Event = event.Event
|
||||
type Tag = event.Tag
|
||||
type TagList = event.TagList
|
||||
type MetricData = event.MetricData
|
||||
|
||||
const (
|
||||
EventLog = event.LogType
|
||||
EventStartSpan = event.StartSpanType
|
||||
EventEndSpan = event.EndSpanType
|
||||
EventLabel = event.LabelType
|
||||
EventDetach = event.DetachType
|
||||
)
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package log is a context based logging package, designed to interact well
|
||||
// with both the lsp protocol and the other telemetry packages.
|
||||
package log
|
||||
|
||||
import "golang.org/x/tools/internal/telemetry/event"
|
||||
|
||||
var (
|
||||
With = event.Log
|
||||
Print = event.Print
|
||||
Error = event.Error
|
||||
)
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package tag provides support for telemetry tagging.
|
||||
// This package is a thin shim over contexts with the main addition being the
|
||||
// the ability to observe when contexts get tagged with new values.
|
||||
package tag
|
||||
|
||||
import (
|
||||
"golang.org/x/tools/internal/telemetry/event"
|
||||
)
|
||||
|
||||
type Key = event.Key
|
||||
|
||||
var (
|
||||
With = event.Label
|
||||
Get = event.Tags
|
||||
Of = event.TagOf
|
||||
)
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package trace adds support for telemetry tracing.
|
||||
package trace
|
||||
|
||||
import (
|
||||
"golang.org/x/tools/internal/telemetry/event"
|
||||
)
|
||||
|
||||
var (
|
||||
StartSpan = event.StartSpan
|
||||
Detach = event.Detach
|
||||
)
|
||||
Loading…
Reference in New Issue