logstest

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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                 *string
	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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL