Documentation ¶
Index ¶
- Constants
- Variables
- func Meter(settings component.TelemetrySettings) metric.Meter
- func Tracer(settings component.TelemetrySettings) trace.Tracer
- func WithAttributeSet(set attribute.Set) telemetryBuilderOption
- func WithLevel(lvl configtelemetry.Level) telemetryBuilderOption
- func WithProcessorBatchMetadataCardinalityCallback(cb func() int64) telemetryBuilderOption
- type TelemetryBuilder
Constants ¶
View Source
const ( TracesStability = component.StabilityLevelBeta MetricsStability = component.StabilityLevelBeta LogsStability = component.StabilityLevelBeta )
Variables ¶
View Source
var (
Type = component.MustNewType("batch")
)
Functions ¶
func WithAttributeSet ¶ added in v0.102.0
WithAttributeSet applies a set of attributes for asynchronous instruments.
func WithLevel ¶ added in v0.102.0
func WithLevel(lvl configtelemetry.Level) telemetryBuilderOption
WithLevel sets the current telemetry level for the component.
func WithProcessorBatchMetadataCardinalityCallback ¶ added in v0.102.0
func WithProcessorBatchMetadataCardinalityCallback(cb func() int64) telemetryBuilderOption
WithProcessorBatchMetadataCardinalityCallback sets callback for observable ProcessorBatchMetadataCardinality metric.
Types ¶
type TelemetryBuilder ¶ added in v0.101.0
type TelemetryBuilder struct { ProcessorBatchBatchSendSize metric.Int64Histogram ProcessorBatchBatchSendSizeBytes metric.Int64Histogram ProcessorBatchBatchSizeTriggerSend metric.Int64Counter ProcessorBatchMetadataCardinality metric.Int64ObservableUpDownCounter ProcessorBatchTimeoutTriggerSend metric.Int64Counter // contains filtered or unexported fields }
TelemetryBuilder provides an interface for components to report telemetry as defined in metadata and user config.
func NewTelemetryBuilder ¶ added in v0.101.0
func NewTelemetryBuilder(settings component.TelemetrySettings, options ...telemetryBuilderOption) (*TelemetryBuilder, error)
NewTelemetryBuilder provides a struct with methods to update all internal telemetry for a component
Click to show internal directories.
Click to hide internal directories.