Documentation ¶
Index ¶
- func InstrumentationLibrary(il instrumentation.Library) *commonpb.InstrumentationLibrary
- func Iterator(iter attribute.Iterator) []*commonpb.KeyValue
- func KeyValue(kv attribute.KeyValue) *commonpb.KeyValue
- func KeyValues(attrs []attribute.KeyValue) []*commonpb.KeyValue
- func Resource(r *resource.Resource) *resourcepb.Resource
- func ResourceAttributes(resource *resource.Resource) []*commonpb.KeyValue
- func Spans(sdl []tracesdk.ReadOnlySpan) []*tracepb.ResourceSpans
- func Value(v attribute.Value) *commonpb.AnyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentationLibrary ¶
func InstrumentationLibrary(il instrumentation.Library) *commonpb.InstrumentationLibrary
nolint: staticcheck
func Resource ¶
func Resource(r *resource.Resource) *resourcepb.Resource
Resource transforms a Resource into an OTLP Resource.
func ResourceAttributes ¶
ResourceAttributes transforms a Resource OTLP 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.