telemetrygateway

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg *config.Config, opts ...Option) error

Types

type OTelConfigMutator

type OTelConfigMutator func(root map[string]any) error

OTelConfigMutator receives the root OTEL conf map and may mutate it.

type Option

type Option func(*runOptions)

Option configures how Run builds both the Collector and the OTEL config.

func WithCollectorSettings

func WithCollectorSettings(mut func(*otelcol.CollectorSettings)) Option

WithCollectorSettings lets callers tweak CollectorSettings before NewCollector.

func WithOTelConfigMutator

func WithOTelConfigMutator(m OTelConfigMutator) Option

WithOTelConfigMutator registers a raw mutator (maximum flexibility).

func WithOTelYAMLOverlay

func WithOTelYAMLOverlay(snippet string) Option

WithOTelYAMLOverlay merges a YAML snippet into the generated config (deep-merge).

func WithSkipSettingGRPCLogger

func WithSkipSettingGRPCLogger(skip bool) Option

WithSkipSettingGRPCLogger avoids setting the grpc logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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