ddprofilingextensionimpl

package module
v0.80.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 11 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

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 NewExtension

NewExtension creates a new instance of the extension.

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"`
	// Endpoint is the local port the profiling HTTP server listens on; used as "localhost:<endpoint>".
	// Default: "7501"
	Endpoint string `mapstructure:"endpoint"`
}

Config contains the config of the profiler.

type ProfilerOptions

type ProfilerOptions struct {
	// Service the profiler will report with.
	// Default: BuildInfo.Command (e.g. otel-agent)
	Service string `mapstructure:"service"`
	// Env the profiler will report with.
	// Default: none
	Env string `mapstructure:"env"`
	// Version the profiler will report with.
	// Default: 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