package tracetransform

import "github.com/moby/buildkit/util/tracing/tracetransform"

Index

Functions

func Attributes

func Attributes(attrs []attribute.KeyValue) []*commonpb.KeyValue

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

func ResourceAttributes(resource *resource.Resource) []*commonpb.KeyValue

ResourceAttributes transforms a Resource into a slice of OTLP attribute key-values.

func Spans

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

Source Files

attribute.go instrumentation.go resource.go span.go

Version
v0.9.0-rc1
Published
Jul 7, 2021
Platform
js/wasm
Imports
10 packages
Last checked
2 minutes ago

Tools for package owners.