convert

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Original source: https://github.com/open-telemetry/opentelemetry-go/blob/v1.31.0/exporters/otlp/otlptrace/internal/tracetransform/attribute.go

Original source: https://github.com/open-telemetry/opentelemetry-go/blob/v1.31.0/exporters/otlp/otlptrace/internal/tracetransform/instrumentation.go

Original source: https://github.com/open-telemetry/opentelemetry-go/blob/v1.31.0/exporters/otlp/otlptrace/internal/tracetransform/resource.go

Original source: https://github.com/open-telemetry/opentelemetry-go/blob/v1.31.0/exporters/otlp/otlptrace/internal/tracetransform/span.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Iterator

func Iterator(iter attribute.Iterator) []*types.KeyValue

Iterator transforms an attribute iterator into OTLP key-values.

func KeyValue

func KeyValue(kv attribute.KeyValue) *types.KeyValue

KeyValue transforms an attribute KeyValue into an OTLP key-value.

func KeyValues

func KeyValues(attrs []attribute.KeyValue) []*types.KeyValue

KeyValues transforms a slice of attribute KeyValues into OTLP key-values.

func Resource

func Resource(r *resource.Resource) *types.Resource

Resource transforms a Resource into an OTLP Resource.

func ResourceAttributes

func ResourceAttributes(res *resource.Resource) []*types.KeyValue

ResourceAttributes transforms a Resource OTLP key-values.

func ResourceSpans

func ResourceSpans(spans []tracesdk.ReadOnlySpan) []*types.ResourceSpans

ResourceSpans transforms a slice of OpenTelemetry spans into a slice of OTLP ResourceSpans.

func Value

func Value(v attribute.Value) *types.AnyValue

Value transforms an attribute Value into an OTLP AnyValue.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL