otel

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteInstrumentation

func DeleteInstrumentation(ctx context.Context, c client.Client, namespace string, apiVersion string) error

DeleteInstrumentation removes the Instrumentation CR from the namespace.

func EnsureInstrumentation

func EnsureInstrumentation(ctx context.Context, c client.Client, namespace string, apiVersion string, cfg InstrumentationConfig) error

EnsureInstrumentation creates or updates an Instrumentation CR in the given namespace.

func IsOperatorInstalled

func IsOperatorInstalled(ctx context.Context, disc discovery.DiscoveryInterface) (bool, string, error)

IsOperatorInstalled checks whether the OpenTelemetry Operator is present by looking for the Instrumentation CRD via the discovery API.

Types

type InstrumentationConfig

type InstrumentationConfig struct {
	OTLPEndpoint    string
	EnvName         string
	PreviewGroup    string
	BaselineVersion string
	GoEnabled       bool // default: false (eBPF needs privileges)
}

InstrumentationConfig holds configuration for creating Instrumentation CRs.

Jump to

Keyboard shortcuts

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