ebpf

package
v1.0.160 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager added in v1.0.134

NewManager creates a new instrumentation manager for eBPF which is configured to work with Kubernetes. Instrumentation factories must be provided in order to create the instrumentation objects. Detector options can be provided to configure the process detector, but if not provided, default options will be used.

Types

type ConfigProvider added in v1.0.98

type ConfigProvider[C any] struct {
	// contains filtered or unexported fields
}

func NewConfigProvider added in v1.0.98

func NewConfigProvider[C any](initialConfig C) *ConfigProvider[C]

NewConfigProvider creates a new configProvider with the given initial config. It allows for updating the configuration of a running instrumentation.

func (*ConfigProvider[C]) InitialConfig added in v1.0.98

func (c *ConfigProvider[C]) InitialConfig(_ context.Context) C

func (*ConfigProvider[C]) SendConfig added in v1.0.98

func (c *ConfigProvider[C]) SendConfig(ctx context.Context, newConfig C) error

SendConfig sends a new configuration to the instrumentation. If the instrumentation was closed or cannot accept the new configuration within a configured timeout, an error is returned.

func (*ConfigProvider[C]) Shutdown added in v1.0.98

func (c *ConfigProvider[C]) Shutdown(_ context.Context) error

func (*ConfigProvider[C]) Watch added in v1.0.98

func (c *ConfigProvider[C]) Watch() <-chan C

type InstrumentationHealth added in v1.0.134

type InstrumentationHealth bool
const (
	InstrumentationHealthy   InstrumentationHealth = true
	InstrumentationUnhealthy InstrumentationHealth = false
)

type InstrumentationManagerOptions added in v1.0.158

type InstrumentationManagerOptions struct {
	Factories          map[instrumentation.OtelDistribution]instrumentation.Factory
	DistributionGetter *distros.Getter
}

type InstrumentationStatusReason added in v1.0.64

type InstrumentationStatusReason string
const (
	FailedToLoad       InstrumentationStatusReason = "FailedToLoad"
	FailedToInitialize InstrumentationStatusReason = "FailedToInitialize"
	LoadedSuccessfully InstrumentationStatusReason = "LoadedSuccessfully"
	FailedToRun        InstrumentationStatusReason = "FailedToRun"
)

type K8sConfigGroup added in v1.0.137

type K8sConfigGroup struct {
	Pw   k8sconsts.PodWorkload
	Lang common.ProgrammingLanguage
}

type K8sProcessDetails added in v1.0.140

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

func (K8sProcessDetails) String added in v1.0.140

func (kd K8sProcessDetails) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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