eventLabelMap implements label.Map for a the labels of an Event.
eventEvent
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.
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.
deliver is called to deliver an event to the supplied exporter.
it will fill in the time.
Package-Level Variables (only one, which is unexported)