agentimpl

package
v0.0.0-...-64ff98e Latest Latest
Warning

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

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

Documentation

Overview

Package agentimpl defines the tracer agent.

Index

Constants

This section is empty.

Variables

View Source
var ErrAgentDisabled = errors.New(messageAgentDisabled)

ErrAgentDisabled indicates that the trace-agent wasn't enabled through environment variable or config.

Functions

func NewAgent

func NewAgent(deps dependencies) (traceagent.Component, error)

NewAgent creates a new Agent component.

Types

type Params

type Params struct {
	// PIDFilePath contains the value of the --pidfile flag.
	PIDFilePath string
	// CPUProfile contains the value for the --cpu-profile flag.
	CPUProfile string
	// MemProfile contains the value for the --mem-profile flag.
	MemProfile string
}

Params replicates the run.Params needed by the tracer agent. This is required to avoid cyclic dependencies.

Jump to

Keyboard shortcuts

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