// 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. func Labels(output event.Exporter) event.Exporter { … }