Documentation
¶
Index ¶
- func Meter(settings component.TelemetrySettings) metric.Meter
- func Tracer(settings component.TelemetrySettings) trace.Tracer
- type TelemetryBuilder
- func (builder *TelemetryBuilder) RegisterProcessCPUSecondsCallback(cb metric.Float64Callback) error
- func (builder *TelemetryBuilder) RegisterProcessMemoryRssCallback(cb metric.Int64Callback) error
- func (builder *TelemetryBuilder) RegisterProcessRuntimeHeapAllocBytesCallback(cb metric.Int64Callback) error
- func (builder *TelemetryBuilder) RegisterProcessRuntimeTotalAllocBytesCallback(cb metric.Int64Callback) error
- func (builder *TelemetryBuilder) RegisterProcessRuntimeTotalSysMemoryBytesCallback(cb metric.Int64Callback) error
- func (builder *TelemetryBuilder) RegisterProcessUptimeCallback(cb metric.Float64Callback) error
- func (builder *TelemetryBuilder) Shutdown()
- type TelemetryBuilderOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TelemetryBuilder ¶
type TelemetryBuilder struct { ConnectorConsumedItems metric.Int64Counter ConnectorConsumedSize metric.Int64Counter ConnectorProducedItems metric.Int64Counter ConnectorProducedSize metric.Int64Counter ExporterConsumedItems metric.Int64Counter ExporterConsumedSize metric.Int64Counter ProcessCPUSeconds metric.Float64ObservableCounter ProcessMemoryRss metric.Int64ObservableGauge ProcessRuntimeHeapAllocBytes metric.Int64ObservableGauge ProcessRuntimeTotalAllocBytes metric.Int64ObservableCounter ProcessRuntimeTotalSysMemoryBytes metric.Int64ObservableGauge ProcessUptime metric.Float64ObservableCounter ProcessorConsumedItems metric.Int64Counter ProcessorConsumedSize metric.Int64Counter ProcessorProducedItems metric.Int64Counter ProcessorProducedSize metric.Int64Counter ReceiverProducedItems metric.Int64Counter ReceiverProducedSize 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 ¶
func NewTelemetryBuilder(settings component.TelemetrySettings, options ...TelemetryBuilderOption) (*TelemetryBuilder, error)
NewTelemetryBuilder provides a struct with methods to update all internal telemetry for a component
func (*TelemetryBuilder) RegisterProcessCPUSecondsCallback ¶ added in v0.119.0
func (builder *TelemetryBuilder) RegisterProcessCPUSecondsCallback(cb metric.Float64Callback) error
RegisterProcessCPUSecondsCallback sets callback for observable ProcessCPUSeconds metric.
func (*TelemetryBuilder) RegisterProcessMemoryRssCallback ¶ added in v0.119.0
func (builder *TelemetryBuilder) RegisterProcessMemoryRssCallback(cb metric.Int64Callback) error
RegisterProcessMemoryRssCallback sets callback for observable ProcessMemoryRss metric.
func (*TelemetryBuilder) RegisterProcessRuntimeHeapAllocBytesCallback ¶ added in v0.119.0
func (builder *TelemetryBuilder) RegisterProcessRuntimeHeapAllocBytesCallback(cb metric.Int64Callback) error
RegisterProcessRuntimeHeapAllocBytesCallback sets callback for observable ProcessRuntimeHeapAllocBytes metric.
func (*TelemetryBuilder) RegisterProcessRuntimeTotalAllocBytesCallback ¶ added in v0.119.0
func (builder *TelemetryBuilder) RegisterProcessRuntimeTotalAllocBytesCallback(cb metric.Int64Callback) error
RegisterProcessRuntimeTotalAllocBytesCallback sets callback for observable ProcessRuntimeTotalAllocBytes metric.
func (*TelemetryBuilder) RegisterProcessRuntimeTotalSysMemoryBytesCallback ¶ added in v0.119.0
func (builder *TelemetryBuilder) RegisterProcessRuntimeTotalSysMemoryBytesCallback(cb metric.Int64Callback) error
RegisterProcessRuntimeTotalSysMemoryBytesCallback sets callback for observable ProcessRuntimeTotalSysMemoryBytes metric.
func (*TelemetryBuilder) RegisterProcessUptimeCallback ¶ added in v0.119.0
func (builder *TelemetryBuilder) RegisterProcessUptimeCallback(cb metric.Float64Callback) error
RegisterProcessUptimeCallback sets callback for observable ProcessUptime metric.
func (*TelemetryBuilder) Shutdown ¶ added in v0.119.0
func (builder *TelemetryBuilder) Shutdown()
Shutdown unregister all registered callbacks for async instruments.
type TelemetryBuilderOption ¶ added in v0.110.0
type TelemetryBuilderOption interface {
// contains filtered or unexported methods
}
TelemetryBuilderOption applies changes to default builder.