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 ¶
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 ¶
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 ¶
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.