ddprofilingextensionimpl

package module
v0.0.0-...-3863354 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 12 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 NewFactory

func NewFactory() extension.Factory

NewFactory creates a factory for Datadog Profiling Extension for use with OCB and OSS Collector

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 {
	// API contains the configuration for the api for the case of agentless uploads.
	// api site is used in non agentless upload setups as well.
	// Not setting API section leads to upload to an agent with.
	API             config.APIConfig `mapstructure:"api"`
	ProfilerOptions ProfilerOptions  `mapstructure:"profiler_options"`
	// Endpoint reports the endpoint used for profiles.
	// Default: BuildInfo.Version (e.g. v0.117.0)
	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