configimpl

package
v0.0.0-...-b136295 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Overview

Package configimpl implements the trace-agent config component. This component temporarily wraps pkg/trace/config.

This component initializes pkg/trace/config based on the bundle params, and will return the same results as that package. This is to support migration to a component architecture. When no code still uses pkg/trace/config, that package will be removed.

Index

Constants

View Source
const DefaultLogFilePath = "/var/log/datadog/trace-agent.log"

DefaultLogFilePath is where the agent will write logs if not overridden in the conf

Variables

This section is empty.

Functions

func LoadConfigFile

func LoadConfigFile(path string, c corecompcfg.Component, tagger tagger.Component, ipc ipc.Component) (*config.AgentConfig, error)

LoadConfigFile returns a new configuration based on the given path. The path must not necessarily exist and a valid configuration can be returned based on defaults and environment variables. If a valid configuration can not be obtained, an error is returned.

func SetHandler

func SetHandler() http.Handler

SetHandler returns handler for runtime configuration changes.

Types

type Provides

type Provides struct {
	Comp traceconfig.Component
}

Provides defines the output of the trace config component.

func NewComponent

func NewComponent(reqs Requires) (Provides, error)

NewComponent is the default constructor for the component, it returns a component instance and an error.

type Requires

type Requires struct {
	Params traceconfig.Params
	Config coreconfig.Component
	Tagger tagger.Component
	IPC    ipc.Component
}

Requires defines the trace config component deps. These include the core config configuration and component config params.

Jump to

Keyboard shortcuts

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