traces

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFromChannel

func ReadFromChannel(r *ReadDecorator) swarm.InstanceFunc

Types

type Decorator

type Decorator func(s *svc.Attrs, pid int)

Decorator modifies a []request.Span slice to fill it with extra information that is not provided by the tracers (for example, the instance ID)

func HostNamePIDDecorator

func HostNamePIDDecorator(cfg *config.InstanceIDConfig) Decorator

type ReadDecorator

type ReadDecorator struct {
	TracesInput     *msg.Queue[[]request.Span]
	DecoratedTraces *msg.Queue[[]request.Span]

	InstanceID config.InstanceIDConfig
}

ReadDecorator is the input node of the processing graph. The eBPF tracers will send their traces to the ReadDecorator's TracesInput, and the ReadDecorator will decorate the traces with some basic information (e.g. instance ID) and forward them to the next pipeline stage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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