Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogRecordStub ¶
type LogRecordStub struct { Timestamp *time.Time ObservedTimestamp time.Time TraceId *trace.TraceID SpanId *trace.SpanID TraceFlags *trace.TraceFlags SeverityText *string SeverityNumber *logs.SeverityNumber Body any Resource *resource.Resource InstrumentationScope *instrumentation.Scope Attributes *[]attribute.KeyValue }
LogRecordStub is a stand-in for a LogRecord.
func LogRecordStubFromReadableLogRecord ¶
func LogRecordStubFromReadableLogRecord(rl logssdk.ReadableLogRecord) LogRecordStub
LogRecordStubFromReadableLogRecord returns a LogRecordStub populated from rl.
func (LogRecordStub) Snapshot ¶
func (s LogRecordStub) Snapshot() logssdk.ReadableLogRecord
Snapshot returns a read-only copy of the LogRecordStub.
type LogRecordStubs ¶
type LogRecordStubs []LogRecordStub
LogRecordStubs is a slice of LogRecordStub use for testing an SDK.
func (LogRecordStubs) Snapshots ¶
func (l LogRecordStubs) Snapshots() []logssdk.ReadableLogRecord
Snapshots returns s as a slice of ReadableLogRecords.
Click to show internal directories.
Click to hide internal directories.