Documentation ¶
Index ¶
- Constants
- Variables
- func LeveledMeter(settings component.TelemetrySettings, level configtelemetry.Level) metric.Meterdeprecated
- func Meter(settings component.TelemetrySettings) metric.Meter
- func Tracer(settings component.TelemetrySettings) trace.Tracer
- type TelemetryBuilder
- type TelemetryBuilderOption
Constants ¶
View Source
const ( TracesStability = component.StabilityLevelBeta MetricsStability = component.StabilityLevelBeta LogsStability = component.StabilityLevelBeta )
Variables ¶
View Source
var (
Type = component.MustNewType("exporterhelper")
)
Functions ¶
func LeveledMeter
deprecated
added in
v0.108.0
func LeveledMeter(settings component.TelemetrySettings, level configtelemetry.Level) metric.Meter
Deprecated: [v0.114.0] use Meter instead.
Types ¶
type TelemetryBuilder ¶
type TelemetryBuilder struct { ExporterEnqueueFailedLogRecords metric.Int64Counter ExporterEnqueueFailedMetricPoints metric.Int64Counter ExporterEnqueueFailedSpans metric.Int64Counter ExporterQueueCapacity metric.Int64ObservableGauge ExporterQueueSize metric.Int64ObservableGauge ExporterSendFailedLogRecords metric.Int64Counter ExporterSendFailedMetricPoints metric.Int64Counter ExporterSendFailedSpans metric.Int64Counter ExporterSentLogRecords metric.Int64Counter ExporterSentMetricPoints metric.Int64Counter ExporterSentSpans 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) InitExporterQueueCapacity ¶ added in v0.103.0
func (builder *TelemetryBuilder) InitExporterQueueCapacity(cb func() int64, opts ...metric.ObserveOption) error
InitExporterQueueCapacity configures the ExporterQueueCapacity metric.
func (*TelemetryBuilder) InitExporterQueueSize ¶ added in v0.103.0
func (builder *TelemetryBuilder) InitExporterQueueSize(cb func() int64, opts ...metric.ObserveOption) error
InitExporterQueueSize configures the ExporterQueueSize metric.
type TelemetryBuilderOption ¶ added in v0.110.0
type TelemetryBuilderOption interface {
// contains filtered or unexported methods
}
TelemetryBuilderOption applies changes to default builder.
Click to show internal directories.
Click to hide internal directories.