Documentation ¶
Index ¶
Constants ¶
const ( SeverityNumberUNDEFINED = internal.SeverityNumberUNDEFINED SeverityNumberTRACE = internal.SeverityNumberTRACE SeverityNumberTRACE2 = internal.SeverityNumberTRACE2 SeverityNumberTRACE3 = internal.SeverityNumberTRACE3 SeverityNumberTRACE4 = internal.SeverityNumberTRACE4 SeverityNumberDEBUG = internal.SeverityNumberDEBUG SeverityNumberDEBUG2 = internal.SeverityNumberDEBUG2 SeverityNumberDEBUG3 = internal.SeverityNumberDEBUG3 SeverityNumberDEBUG4 = internal.SeverityNumberDEBUG4 SeverityNumberINFO = internal.SeverityNumberINFO SeverityNumberINFO2 = internal.SeverityNumberINFO2 SeverityNumberINFO3 = internal.SeverityNumberINFO3 SeverityNumberINFO4 = internal.SeverityNumberINFO4 SeverityNumberWARN = internal.SeverityNumberWARN SeverityNumberWARN2 = internal.SeverityNumberWARN2 SeverityNumberWARN3 = internal.SeverityNumberWARN3 SeverityNumberWARN4 = internal.SeverityNumberWARN4 SeverityNumberERROR = internal.SeverityNumberERROR SeverityNumberERROR2 = internal.SeverityNumberERROR2 SeverityNumberERROR3 = internal.SeverityNumberERROR3 SeverityNumberERROR4 = internal.SeverityNumberERROR4 SeverityNumberFATAL = internal.SeverityNumberFATAL SeverityNumberFATAL2 = internal.SeverityNumberFATAL2 SeverityNumberFATAL3 = internal.SeverityNumberFATAL3 SeverityNumberFATAL4 = internal.SeverityNumberFATAL4 )
Variables ¶
var NewLogRecord = internal.NewLogRecord
NewLogRecord is an alias for a function to create a new empty LogRecord.
var NewLogRecordSlice = internal.NewLogRecordSlice
NewLogRecordSlice creates a LogRecordSlice with 0 elements. Can use "EnsureCapacity" to initialize with a given capacity.
var NewLogs = internal.NewLogs
NewLogs creates a new Logs struct.
var NewResourceLogs = internal.NewResourceLogs
NewResourceLogs is an alias for a function to create a new empty ResourceLogs.
var NewResourceLogsSlice = internal.NewResourceLogsSlice
NewResourceLogsSlice creates a ResourceLogsSlice with 0 elements. Can use "EnsureCapacity" to initialize with a given capacity.
var NewScopeLogs = internal.NewScopeLogs
NewScopeLogs is an alias for a function to create a new empty ScopeLogs.
var NewScopeLogsSlice = internal.NewScopeLogsSlice
NewScopeLogsSlice creates a ScopeLogsSlice with 0 elements. Can use "EnsureCapacity" to initialize with a given capacity.
Functions ¶
This section is empty.
Types ¶
type LogRecord ¶
This is a reference type, if passed by value and callee modifies it the caller will see the modification.
Must use NewLogRecord function to create new instances. Important: zero-initialized instance is not valid for use.
type LogRecordSlice ¶
type LogRecordSlice = internal.LogRecordSlice
LogRecordSlice logically represents a slice of LogRecord.
This is a reference type. If passed by value and callee modifies it, the caller will see the modification.
Must use NewLogRecordSlice function to create new instances. Important: zero-initialized instance is not valid for use.
type Logs ¶
Logs is the top-level struct that is propagated through the logs pipeline. Use NewLogs to create new instance, zero-initialized instance is not valid for use.
type Marshaler ¶
type Marshaler interface { // MarshalLogs the given pdata.Logs into bytes. // If the error is not nil, the returned bytes slice cannot be used. MarshalLogs(ld Logs) ([]byte, error) }
Marshaler marshals pdata.Logs into bytes.
func NewJSONMarshaler ¶
func NewJSONMarshaler() Marshaler
NewJSONMarshaler returns a Marshaler. Marshals to OTLP json bytes.
func NewProtoMarshaler ¶
func NewProtoMarshaler() Marshaler
NewProtoMarshaler returns a Marshaler. Marshals to OTLP binary protobuf bytes.
type ResourceLogs ¶
type ResourceLogs = internal.ResourceLogs
ResourceLogs is a collection of logs from a Resource.
This is a reference type, if passed by value and callee modifies it the caller will see the modification.
Must use NewResourceLogs function to create new instances. Important: zero-initialized instance is not valid for use.
type ResourceLogsSlice ¶
type ResourceLogsSlice = internal.ResourceLogsSlice
ResourceLogsSlice logically represents a slice of ResourceLogs.
This is a reference type. If passed by value and callee modifies it, the caller will see the modification.
Must use NewResourceLogsSlice function to create new instances. Important: zero-initialized instance is not valid for use.
type ScopeLogs ¶
ScopeLogs is a collection of logs from a LibraryInstrumentation.
This is a reference type, if passed by value and callee modifies it the caller will see the modification.
Must use NewScopeLogs function to create new instances. Important: zero-initialized instance is not valid for use.
type ScopeLogsSlice ¶
type ScopeLogsSlice = internal.ScopeLogsSlice
ScopeLogsSlice logically represents a slice of ScopeLogs.
This is a reference type. If passed by value and callee modifies it, the caller will see the modification.
Must use NewScopeLogsSlice function to create new instances. Important: zero-initialized instance is not valid for use.
type SeverityNumber ¶
type SeverityNumber = internal.SeverityNumber
SeverityNumber represents severity number of a log record.
type Sizer ¶
type Sizer interface { // LogsSize returns the size in bytes of a marshaled Logs. LogsSize(ld Logs) int }
Sizer is an optional interface implemented by the Marshaler, that calculates the size of a marshaled Logs.
type Unmarshaler ¶
type Unmarshaler interface { // UnmarshalLogs the given bytes into pdata.Logs. // If the error is not nil, the returned pdata.Logs cannot be used. UnmarshalLogs(buf []byte) (Logs, error) }
Unmarshaler unmarshalls bytes into pdata.Logs.
func NewJSONUnmarshaler ¶
func NewJSONUnmarshaler() Unmarshaler
NewJSONUnmarshaler returns a model.Unmarshaler. Unmarshals from OTLP json bytes.
func NewProtoUnmarshaler ¶
func NewProtoUnmarshaler() Unmarshaler
NewProtoUnmarshaler returns a model.Unmarshaler. Unmarshals from OTLP binary protobuf bytes.