opentelemetry

package
v0.11.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithEBPFEvent

func ContextWithEBPFEvent(parent context.Context, event probe.Event) context.Context

ContextWithEBPFEvent returns a copy of parent in which event is stored.

func EventFromContext

func EventFromContext(ctx context.Context) *probe.Event

EventFromContext returns the event within ctx if one exists.

Types

type Controller

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

Controller handles OpenTelemetry telemetry generation for events.

func NewController

func NewController(logger logr.Logger, tracerProvider trace.TracerProvider, ver string) (*Controller, error)

NewController returns a new initialized Controller.

func (*Controller) Trace

func (c *Controller) Trace(event *probe.Event)

Trace creates a trace span for event.

type EBPFSourceIDGenerator

type EBPFSourceIDGenerator struct{}

func NewEBPFSourceIDGenerator

func NewEBPFSourceIDGenerator() *EBPFSourceIDGenerator

func (*EBPFSourceIDGenerator) NewIDs

func (*EBPFSourceIDGenerator) NewSpanID

func (e *EBPFSourceIDGenerator) NewSpanID(ctx context.Context, traceID trace.TraceID) trace.SpanID

Jump to

Keyboard shortcuts

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