collectorimpl

package
v0.0.0-...-a5a9a89 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Overview

Package collectorimpl implements the collector component interface

Package collectorimpl implements the collector component interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraFactories

type ExtraFactories interface {
	GetReceivers() []receiver.Factory
	GetProcessors() []processor.Factory
	GetConverters() []confmap.ConverterFactory
	GetExtensions() []extension.Factory
	GetLoggingOptions() []zap.Option
	GetAgentConfig() config.Component
	GetProfilerName() string
}

ExtraFactories is an interface that provides extra factories for the collector. It is used to provide extra factories for the collector when the Agent Core is available or not.

func NewExtraFactoriesWithAgentCore

func NewExtraFactoriesWithAgentCore(
	tagger tagger.Component,
	hostname hostname.Component, ipcComp ipc.Component,
	traceAgent traceagent.Component,
	log log.Component,
	config config.Component,
) ExtraFactories

NewExtraFactoriesWithAgentCore creates a new ExtraFactories instance when the Agent Core is available.

func NewExtraFactoriesWithoutAgentCore

func NewExtraFactoriesWithoutAgentCore() ExtraFactories

NewExtraFactoriesWithoutAgentCore creates a new ExtraFactories instance when the Agent Core is not available.

type Params

type Params struct {
	GoRuntimeMetrics bool
	// contains filtered or unexported fields
}

Params contains the parameters for the collector component.

func NewParams

func NewParams(uri string, goRuntimeMetrics bool) Params

NewParams creates a new Params instance.

func (Params) GetGoRuntimeMetrics

func (p Params) GetGoRuntimeMetrics() bool

GetGoRuntimeMetrics returns whether Go runtime metrics collection is enabled.

type Provides

type Provides struct {
	Comp collector.Component
}

Provides defines the output of the collector component.

func NewComponent

func NewComponent(reqs Requires) (Provides, error)

NewComponent creates a new collector component

type Requires

type Requires struct {
	Params         Params
	ExtraFactories ExtraFactories
	Lc             compdef.Lifecycle
}

Requires defines the dependencies for the collector component

Directories

Path Synopsis
Package agentprovider generates OpenTelemetry Collector configuration from Datadog Agent configuration.
Package agentprovider generates OpenTelemetry Collector configuration from Datadog Agent configuration.
Package converters implements the converters for the host profiler collector.
Package converters implements the converters for the host profiler collector.
extensions
hpflareextension
Package hpflareextension defines the OpenTelemetry Extension implementation.
Package hpflareextension defines the OpenTelemetry Extension implementation.
Package params defines the interface for collector configuration parameters.
Package params defines the interface for collector configuration parameters.
processor
ddhostnameprocessor
Package ddhostnameprocessor implements an OTel processor that injects datadog.host.name into resource attributes for standalone mode.
Package ddhostnameprocessor implements an OTel processor that injects datadog.host.name into resource attributes for standalone mode.
Package receiver implements the receiver for the host profiler.
Package receiver implements the receiver for the host profiler.

Jump to

Keyboard shortcuts

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