Documentation
¶
Overview ¶
Package ddprofilingextensionimpl defines the OpenTelemetry Extension implementation.
Package ddprofilingextensionimpl defines the OpenTelemetry Profiling implementation ¶
Package ddprofilingextensionimpl defines the OpenTelemetry Extension implementation.
Package ddprofilingextensionimpl defines the OpenTelemetry Profiling implementation ¶
Package ddprofilingextensionimpl defines the OpenTelemetry Profiling implementation
Index ¶
- Variables
- func NewComponent(cfg *Config, info component.BuildInfo, traceAgent traceagent.Component, ...) (ddprofilingextensiondef.Component, error)
- func NewFactory() extension.Factory
- func NewFactoryForAgent(traceAgent traceagent.Component, log corelog.Component) extension.Factory
- type Config
- type ProfilerOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var Type = component.MustNewType("ddprofiling")
Type exports the internal metadata type for easy reference
Functions ¶
func NewComponent ¶ added in v0.82.0
func NewComponent(cfg *Config, info component.BuildInfo, traceAgent traceagent.Component, log corelog.Component) (ddprofilingextensiondef.Component, error)
NewComponent creates a new instance of the extension.
func NewFactory ¶
NewFactory creates a factory for Datadog Profiling Extension for standalone use with local agent running.
func NewFactoryForAgent ¶
NewFactoryForAgent creates a factory for Datadog Profiling Extension for use with Agent
Types ¶
type Config ¶
type Config struct {
ProfilerOptions ProfilerOptions `mapstructure:"profiler_options"`
AgentAddr string `mapstructure:"agent_addr"`
// Endpoint is the local port the profiling HTTP server listens on; used as "localhost:<endpoint>".
// Default: "7501"
Endpoint string `mapstructure:"endpoint"`
// UnixSocket sends profiles straight to a trace agent listening on this unix
// socket, bypassing the local forwarding server. Every other agent process
// already supports this via <component>.internal_profiling.unix_socket; without
// it the otel-agent is the only one that cannot be profiled in environments
// that expose a socket rather than HTTP egress (the SMP regression sandbox,
// for one).
// Ignored on Windows, where the Agent serves no APM unix socket: profiles
// are sent over HTTP there as if this were unset.
// Default: DD_OTELCOLLECTOR_INTERNAL_PROFILING_UNIX_SOCKET, then unset.
UnixSocket string `mapstructure:"unix_socket"`
}
Config contains the config of the profiler.
type ProfilerOptions ¶
type ProfilerOptions struct {
// Service the profiler will report with.
// Default: DD_SERVICE, then BuildInfo.Command (e.g. otel-agent)
Service string `mapstructure:"service"`
// Env the profiler will report with.
// Default: DD_ENV, then none
Env string `mapstructure:"env"`
// Version the profiler will report with.
// Default: DD_VERSION, then BuildInfo.Version (e.g. v0.117.0)
Version string `mapstructure:"version"`
// Period in seconds the profiler will report with.
// Default: 60s
Period int `mapstructure:"period"`
// ProfileTypes specifies additional profile types to enable.
// supported values are blockprofile, mutexprofile and goroutineprofile.
// By default CPU and Heap profiles are enabled.
ProfileTypes []string `mapstructure:"profile_types"`
}
ProfilerOptions defines settings relevant to the profiler.
Click to show internal directories.
Click to hide internal directories.