initcontainer

package
v0.0.0-...-c2b312d Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoInstrumentTracer

func AutoInstrumentTracer(fs afero.Fs)

AutoInstrumentTracer searches the filesystem for a trace library, and automatically sets the correct environment variables.

func Run

func Run(
	cloudService cloudservice.CloudService,
	logConfig *serverlessLog.Config,
	metricAgent *metrics.ServerlessMetricAgent,
	traceAgent *trace.ServerlessTraceAgent,
	logsAgent logsAgent.ServerlessLogsAgent,
	args []string,
)

Run is the entrypoint of the init process. It will spawn the customer process

Types

type Tracer

type Tracer struct {
	FsPath string
	InitFn func()
}

Tracer holds a name, a path to the trace directory, and an initialization function that automatically instruments the tracer

Jump to

Keyboard shortcuts

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