mode

package
v0.0.0-...-2d20432 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunInit

func RunInit(logConfig *serverlessLog.Config) error

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

func RunSidecar

func RunSidecar(_ *serverlessLog.Config) error

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

Types

type Conf

type Conf struct {
	LoggerName     string
	Runner         func(logConfig *serverlessLog.Config) error
	TagVersionMode string
	EnvDefaults    map[string]string
}

Conf contains the configuration for the mode in which the serverless-init agent should run

func DetectMode

func DetectMode() Conf

DetectMode detects the mode in which the serverless agent should run

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