Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logs

func Logs(recs ...Log) pdata.Logs

Logs is a convenience function for constructing logs for tests in a way that is relatively easy to read and write declaratively compared to the highly imperative and verbose method of using pdata directly. Attributes are sorted by key name.

Types

type Log

type Log struct {
	Timestamp  int64
	Body       pdata.AttributeValue
	Attributes map[string]pdata.AttributeValue
}

Log is a convenience struct for constructing logs for tests. See Logs for rationale.

Source Files