logstest

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logs

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

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
}

Jump to

Keyboard shortcuts

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