Versions in this module Expand all Collapse all v0 v0.0.1 Sep 8, 2023 Changes in this version + const DefaultExportTimeout + const DefaultMaxExportBatchSize + const DefaultMaxQueueSize + const DefaultScheduleDelay + type BatchLogRecordProcessorOption func(o *BatchLogRecordProcessorOptions) + func WithBatchTimeout(delay time.Duration) BatchLogRecordProcessorOption + func WithBlocking() BatchLogRecordProcessorOption + func WithExportTimeout(timeout time.Duration) BatchLogRecordProcessorOption + func WithMaxExportBatchSize(size int) BatchLogRecordProcessorOption + func WithMaxQueueSize(size int) BatchLogRecordProcessorOption + type BatchLogRecordProcessorOptions struct + BatchTimeout time.Duration + BlockOnQueueFull bool + ExportTimeout time.Duration + MaxExportBatchSize int + MaxQueueSize int + type LogRecordExporter interface + Export func(ctx context.Context, batch []ReadableLogRecord) error + Shutdown func(ctx context.Context) error + type LogRecordProcessor interface + ForceFlush func(ctx context.Context) error + OnEmit func(rol ReadableLogRecord) + Shutdown func(ctx context.Context) error + func NewBatchLogRecordProcessor(exporter LogRecordExporter, options ...BatchLogRecordProcessorOption) LogRecordProcessor + func NewSimpleLogRecordProcessor(exporter LogRecordExporter) LogRecordProcessor + type LoggerProvider struct + func NewLoggerProvider(opts ...LoggerProviderOption) *LoggerProvider + func (lp *LoggerProvider) Logger(name string, opts ...logs.LoggerOption) logs.Logger + func (p *LoggerProvider) ForceFlush(ctx context.Context) error + func (p LoggerProvider) Shutdown(ctx context.Context) error + type LoggerProviderOption interface + func WithBatcher(e LogRecordExporter, opts ...BatchLogRecordProcessorOption) LoggerProviderOption + func WithLogRecordProcessor(logsProcessor LogRecordProcessor) LoggerProviderOption + func WithResource(r *resource.Resource) LoggerProviderOption + func WithSyncer(e LogRecordExporter) LoggerProviderOption + type ReadWriteLogRecord interface + RecordException func(*string, *string, *string) + SetResource func(resource *resource.Resource) + type ReadableLogRecord interface + Attributes func() *[]attribute.KeyValue + Body func() *string + InstrumentationScope func() *instrumentation.Scope + ObservedTimestamp func() time.Time + Resource func() *resource.Resource + SeverityNumber func() *logs.SeverityNumber + SeverityText func() *string + SpanId func() *trace.SpanID + Timestamp func() *time.Time + TraceFlags func() *trace.TraceFlags + TraceId func() *trace.TraceID