Documentation
¶
Index ¶
- func Attributes(attrs []attribute.KeyValue) []*commonpb.KeyValue
- func InstrumentationLibrary(il instrumentation.Library) *commonpb.InstrumentationLibrary
- func Resource(r *resource.Resource) *resourcepb.Resource
- func ResourceAttributes(resource *resource.Resource) []*commonpb.KeyValue
- func Spans(sdl []tracesdk.ReadOnlySpan) []*tracepb.ResourceSpans
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attributes ¶
Attributes transforms a slice of KeyValues into a slice of OTLP attribute key-values.
func InstrumentationLibrary ¶
func InstrumentationLibrary(il instrumentation.Library) *commonpb.InstrumentationLibrary
func Resource ¶
func Resource(r *resource.Resource) *resourcepb.Resource
Resource transforms a Resource into an OTLP Resource.
func ResourceAttributes ¶
ResourceAttributes transforms a Resource into a slice of OTLP attribute key-values.
func Spans ¶
func Spans(sdl []tracesdk.ReadOnlySpan) []*tracepb.ResourceSpans
Spans transforms a slice of OpenTelemetry spans into a slice of OTLP ResourceSpans.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.