package core

Import Path
	golang.org/x/tools/internal/event/core (on go.dev)

Dependency Relation
	imports 7 packages, and imported by one package

Involved Source Files Package core provides support for event based telemetry. export.go fast.go
Package-Level Type Names (total 3, in which 2 are exported)
/* sort exporteds by: | */
Event holds the information about an event of note that occurred. ( Event) At() time.Time ( Event) Find(key label.Key) label.Label ( Event) Format(f fmt.State, r rune) ( Event) Label(index int) label.Label ( Event) Valid(index int) bool Event : golang.org/x/tools/internal/event/label.List Event : golang.org/x/tools/internal/event/label.Map Event : fmt.Formatter func CloneEvent(ev Event, at time.Time) Event func MakeEvent(static [3]label.Label, labels []label.Label) Event func CloneEvent(ev Event, at time.Time) Event func Export(ctx context.Context, ev Event) context.Context func ExportPair(ctx context.Context, begin, end Event) (context.Context, func()) func golang.org/x/tools/internal/event.IsDetach(ev Event) bool func golang.org/x/tools/internal/event.IsEnd(ev Event) bool func golang.org/x/tools/internal/event.IsError(ev Event) bool func golang.org/x/tools/internal/event.IsLabel(ev Event) bool func golang.org/x/tools/internal/event.IsLog(ev Event) bool func golang.org/x/tools/internal/event.IsMetric(ev Event) bool func golang.org/x/tools/internal/event.IsStart(ev Event) bool
Exporter is a function that handles events. It may return a modified context and event. func SetExporter(e Exporter)
Package-Level Functions (total 12, in which 11 are exported)
CloneEvent event returns a copy of the event with the time adjusted to at.
Export is called to deliver an event to the global exporter if set.
ExportPair is called to deliver a start event to the supplied exporter. It also returns a function that will deliver the end event to the same exporter. It will fill in the time.
Log1 takes a message and one label delivers a log event to the exporter. It is a customized version of Print that is faster and does no allocation.
Log2 takes a message and two labels and delivers a log event to the exporter. It is a customized version of Print that is faster and does no allocation.
func MakeEvent(static [3]label.Label, labels []label.Label) Event
Metric1 sends a label event to the exporter with the supplied labels.
Metric2 sends a label event to the exporter with the supplied labels.
SetExporter sets the global exporter function that handles all events. The exporter is called synchronously from the event call site, so it should return quickly so as not to hold up user code.
Start1 sends a span start event with the supplied label list to the exporter. It also returns a function that will end the span, which should normally be deferred.
Start2 sends a span start event with the supplied label list to the exporter. It also returns a function that will end the span, which should normally be deferred.
Package-Level Variables (only one, which is unexported)