Documentation
¶
Index ¶
- Constants
- func MeterProviderWithAttributes(mp metric.MeterProvider, attrs attribute.Set) metric.MeterProvider
- func NewConsoleCoreWithAttributes(c zapcore.Core, attrs attribute.Set) zapcore.Core
- func NewOTelTeeCoreWithAttributes(consoleCore zapcore.Core, lp log.LoggerProvider, scopeName string, ...) zapcore.Core
- func NewSamplerCoreWithAttributes(inner zapcore.Core, tick time.Duration, first int, thereafter int) zapcore.Core
- func RemoveAttributes(attrs attribute.Set, fields ...string) attribute.Set
- func TracerProviderWithAttributes(tp trace.TracerProvider, attrs attribute.Set) trace.TracerProvider
- func ZapLoggerWithAttributes(logger *zap.Logger, attrs attribute.Set) *zap.Logger
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
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 RemoveAttributes ¶ added in v0.123.0
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.