componentattribute

package
v0.130.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentKindKey = "otelcol.component.kind"
	ComponentIDKey   = "otelcol.component.id"
	PipelineIDKey    = "otelcol.pipeline.id"
	SignalKey        = "otelcol.signal"
	SignalOutputKey  = "otelcol.signal.output"
)

Variables

This section is empty.

Functions

func MeterProviderWithAttributes added in v0.123.0

func MeterProviderWithAttributes(mp metric.MeterProvider, attrs attribute.Set) metric.MeterProvider

MeterProviderWithAttributes creates a MeterProvider with a new set of injected instrumentation scope attributes.

func NewConsoleCoreWithAttributes added in v0.123.0

func NewConsoleCoreWithAttributes(c zapcore.Core, attrs attribute.Set) zapcore.Core

NewConsoleCoreWithAttributes wraps a Zap core in order to inject component attributes as Zap fields.

This is used for the Collector's console output.

func NewOTelTeeCoreWithAttributes added in v0.123.0

func NewOTelTeeCoreWithAttributes(consoleCore zapcore.Core, lp log.LoggerProvider, scopeName string, level zapcore.Level, attrs attribute.Set) zapcore.Core

NewOTelTeeCoreWithAttributes wraps a Zap core in order to copy logs to a log.LoggerProvider using otelzap. For the copied logs, component attributes are injected as instrumentation scope attributes.

This is used when service::telemetry::logs::processors is configured.

func NewSamplerCoreWithAttributes added in v0.129.0

func NewSamplerCoreWithAttributes(inner zapcore.Core, tick time.Duration, first int, thereafter int) zapcore.Core

func RemoveAttributes added in v0.123.0

func RemoveAttributes(attrs attribute.Set, fields ...string) attribute.Set

func TracerProviderWithAttributes added in v0.123.0

func TracerProviderWithAttributes(tp trace.TracerProvider, attrs attribute.Set) trace.TracerProvider

TracerProviderWithAttributes creates a TracerProvider with a new set of injected instrumentation scope attributes.

func ZapLoggerWithAttributes added in v0.123.0

func ZapLoggerWithAttributes(logger *zap.Logger, attrs attribute.Set) *zap.Logger

ZapLoggerWithAttributes creates a Zap Logger with a new set of injected component attributes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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