configimpl

package
v0.0.0-...-e70f483 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 45 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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