Documentation ¶ Index ¶ func Logs(recs ...Log) pdata.Logs type Log 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 } Source Files ¶ View all Source files logs.go Click to show internal directories. Click to hide internal directories.