telemetry

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resource

func Resource() *resv1.Resource

func SetComponent

func SetComponent(comp *core.Component)

func SpanContextFromOTEL

func SpanContextFromOTEL(otelSpan trace.SpanContext) *core.SpanContext

Types

type Attribute

type Attribute struct {
	// contains filtered or unexported fields
}

func SpanAttribute

func SpanAttribute(key string, val any) Attribute

type Span

type Span struct {
	// contains filtered or unexported fields
}

func StartSpan

func StartSpan(name string, traceParent *core.SpanContext, attrs ...Attribute) *Span

func (*Span) End

func (s *Span) End()

func (*Span) OTELSpan

func (s *Span) OTELSpan() *tracev1.Span

func (*Span) SpanContext

func (s *Span) SpanContext() *core.SpanContext

Jump to

Keyboard shortcuts

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