Documentation ¶
Index ¶
- func LogRecord(id string) plog.LogRecord
- func NewLogs(resourceIDs, scopeIDs, logRecordIDs string) plog.Logs
- func NewLogsFromOpts(resources ...plog.ResourceLogs) plog.Logs
- func Resource(id string, scopes ...plog.ScopeLogs) plog.ResourceLogs
- func Scope(id string, logs ...plog.LogRecord) plog.ScopeLogs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogs ¶
NewLogs returns a plog.Logs with a uniform structure where resources, scopes, and log records are identical across all instances, except for one identifying field.
Identifying fields: - Resources have an attribute called "resourceName" with a value of "resourceN". - Scopes have a name with a value of "scopeN". - LogRecords have a body with a value of "logN".
Example: NewLogs("AB", "XYZ", "1234") returns:
resourceA, resourceB each with scopeX, scopeY, scopeZ each with log1, log2, log3, log4
Each byte in the input string is a unique ID for the corresponding element.
func NewLogsFromOpts ¶
func NewLogsFromOpts(resources ...plog.ResourceLogs) plog.Logs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.