Documentation ¶
Index ¶
- func InstrumentationScope(il instrumentation.Library) *commonpb.InstrumentationScope
- 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 InstrumentationScope ¶ added in v1.6.2
func InstrumentationScope(il instrumentation.Library) *commonpb.InstrumentationScope
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.