networkmetrics

package
v1.0.0-beta.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	BytesName     = "dagger.engine.network.io"
	AvailableName = "dagger.engine.network.available"
)

Variables

This section is empty.

Functions

func NewExecMountResources

func NewExecMountResources(path string) enginetel.ExecMountResources

func PrepareCommandNetwork

func PrepareCommandNetwork(ctx context.Context, cmd *exec.Cmd) func()

PrepareCommandNetwork attributes CPU, memory, and kernel network counters to a dedicated child span per command. Call before starting cmd and finish after Wait. Exec mount daemons use ExecMountResources instead, so their final usage is included in the execution before its span ends. Finish records a snapshot and schedules bounded cleanup without waiting for surviving helpers. The span ends at finish; late samples keep its ID and require the session's telemetry to remain open. Unsupported environments run normally and report availability=0.

func Register

func Register(_ context.Context, meter metric.Meter) (metric.Registration, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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