// Spans transforms a slice of OpenTelemetry spans into a slice of OTLP // ResourceSpans. func Spans(sdl []tracesdk.ReadOnlySpan) []*tracepb.ResourceSpans { … } // span transforms a Span into an OTLP span. func span(sd tracesdk.ReadOnlySpan) *tracepb.Span { … } // status transform a span code and message into an OTLP span status. func status(status codes.Code, message string) *tracepb.Status { … } // links transforms span Links to OTLP span links. func links(links []tracesdk.Link) []*tracepb.Span_Link { … } func buildSpanFlags(sc trace.SpanContext) uint32 { … } // spanEvents transforms span Events to an OTLP span events. func spanEvents(es []tracesdk.Event) []*tracepb.Span_Event { … } // spanKind transforms a SpanKind to an OTLP span kind. func spanKind(kind trace.SpanKind) tracepb.Span_SpanKind { … }