ddprofilingextensionimpl

package module
v0.85.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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

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

NewComponent creates a new instance of the extension.

func NewFactory

func NewFactory() extension.Factory

NewFactory creates a factory for Datadog Profiling Extension for standalone use with local agent running.

func NewFactoryForAgent

func NewFactoryForAgent(traceAgent traceagent.Component, log corelog.Component) extension.Factory

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.

Jump to

Keyboard shortcuts

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