import "golang.org/x/tools/internal/event/export"
id.go log.go printer.go tag.go trace.go
Labels builds an exporter that manipulates the context using the event. If the event is type IsLabel or IsStartSpan then it returns a context updated with label values from the event. For all other event types the event labels will be updated with values from the context if they are missing.
LogWriter returns an Exporter that logs events to the supplied writer. If onlyErrors is true it does not log any event that did not have an associated error. It ignores all telemetry other than log events.
Spans creates an exporter that maintains hierarchical span structure in the context. It creates new spans on start events, adds events to the current span on log or label, and closes the span on end events. The span structure can then be used by other exporters.
type Printer struct {
// contains filtered or unexported fields
}
type Span struct { Name string ID SpanContext ParentID SpanID // contains filtered or unexported fields }
func (s *SpanContext) Format(f fmt.State, r rune)
Path | Synopsis |
---|---|
eventtest | Package eventtest supports logging events to a test. |
metric | Package metric aggregates events into metrics that can be exported. |
ocagent | Package ocagent adds the ability to export all telemetry to an ocagent. |
ocagent/wire | |
prometheus |
Package export imports 12 packages (graph) and is imported by 8 packages. Updated 2021-01-23. Refresh now. Tools for package owners.