process

package
v1.0.151 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
const (
	NodeVersionConst   = "NODE_VERSION"
	PythonVersionConst = "PYTHON_VERSION"
	JavaVersionConst   = "JAVA_VERSION"
)
View Source
const (
	NewRelicAgentEnv = "NEW_RELIC_CONFIG_FILE"
)

Variables

View Source
var LangsVersionEnvs = map[string]struct{}{NodeVersionConst: {}, PythonVersionConst: {}, JavaVersionConst: {}}

LangsVersionEnvs is a map of environment variables used for detecting the versions of different languages

View Source
var OtherAgentCmdSubString = map[string]string{
	"newrelic.jar": "New Relic Agent",
}
View Source
var OtherAgentEnvs = map[string]string{
	NewRelicAgentEnv: "New Relic Agent",
}

Functions

This section is empty.

Types

type Details

type Details struct {
	ProcessID    int
	ExePath      string
	CmdLine      string
	Environments ProcessEnvs
}

func FindAllProcesses

func FindAllProcesses(predicate func(string) bool) ([]Details, error)

Find all processes in the system. The function accepts a predicate function that can be used to filter the results.

func GetPidDetails

func GetPidDetails(pid int) Details

func (*Details) GetDetailedEnvsValue added in v1.0.93

func (d *Details) GetDetailedEnvsValue(key string) (string, bool)

func (*Details) GetOverwriteEnvsValue added in v1.0.93

func (d *Details) GetOverwriteEnvsValue(key string) (string, bool)

type ProcessEnvs added in v1.0.93

type ProcessEnvs struct {
	DetailedEnvs map[string]string
	// OverwriteEnvs only contains environment variables that Odigos is using for auto-instrumentation and may need to be overwritten
	OverwriteEnvs map[string]string
}

Jump to

Keyboard shortcuts

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