v1

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthLogs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLogs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLogs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var LogRecordFlags_name = map[int32]string{
	0:   "UNDEFINED_LOG_RECORD_FLAG",
	255: "TRACE_FLAGS_MASK",
}
View Source
var LogRecordFlags_value = map[string]int32{
	"UNDEFINED_LOG_RECORD_FLAG": 0,
	"TRACE_FLAGS_MASK":          255,
}
View Source
var SeverityNumber_name = map[int32]string{
	0:  "UNDEFINED_SEVERITY_NUMBER",
	1:  "TRACE",
	2:  "TRACE2",
	3:  "TRACE3",
	4:  "TRACE4",
	5:  "DEBUG",
	6:  "DEBUG2",
	7:  "DEBUG3",
	8:  "DEBUG4",
	9:  "INFO",
	10: "INFO2",
	11: "INFO3",
	12: "INFO4",
	13: "WARN",
	14: "WARN2",
	15: "WARN3",
	16: "WARN4",
	17: "ERROR",
	18: "ERROR2",
	19: "ERROR3",
	20: "ERROR4",
	21: "FATAL",
	22: "FATAL2",
	23: "FATAL3",
	24: "FATAL4",
}
View Source
var SeverityNumber_value = map[string]int32{
	"UNDEFINED_SEVERITY_NUMBER": 0,
	"TRACE":                     1,
	"TRACE2":                    2,
	"TRACE3":                    3,
	"TRACE4":                    4,
	"DEBUG":                     5,
	"DEBUG2":                    6,
	"DEBUG3":                    7,
	"DEBUG4":                    8,
	"INFO":                      9,
	"INFO2":                     10,
	"INFO3":                     11,
	"INFO4":                     12,
	"WARN":                      13,
	"WARN2":                     14,
	"WARN3":                     15,
	"WARN4":                     16,
	"ERROR":                     17,
	"ERROR2":                    18,
	"ERROR3":                    19,
	"ERROR4":                    20,
	"FATAL":                     21,
	"FATAL2":                    22,
	"FATAL3":                    23,
	"FATAL4":                    24,
}

Functions

This section is empty.

Types

type InstrumentationLibraryLogs added in v0.7.0

type InstrumentationLibraryLogs struct {
	// The instrumentation library information for the logs in this message.
	// If this field is not set then no library info is known.
	InstrumentationLibrary *v11.InstrumentationLibrary `` /* 127-byte string literal not displayed */
	// A list of log records.
	Logs []*LogRecord `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"`
}

A collection of Logs produced by an InstrumentationLibrary.

func (*InstrumentationLibraryLogs) Descriptor added in v0.7.0

func (*InstrumentationLibraryLogs) Descriptor() ([]byte, []int)

func (*InstrumentationLibraryLogs) GetInstrumentationLibrary added in v0.7.0

func (m *InstrumentationLibraryLogs) GetInstrumentationLibrary() *v11.InstrumentationLibrary

func (*InstrumentationLibraryLogs) GetLogs added in v0.7.0

func (m *InstrumentationLibraryLogs) GetLogs() []*LogRecord

func (*InstrumentationLibraryLogs) Marshal added in v0.7.0

func (m *InstrumentationLibraryLogs) Marshal() (dAtA []byte, err error)

func (*InstrumentationLibraryLogs) MarshalTo added in v0.7.0

func (m *InstrumentationLibraryLogs) MarshalTo(dAtA []byte) (int, error)

func (*InstrumentationLibraryLogs) MarshalToSizedBuffer added in v0.7.0

func (m *InstrumentationLibraryLogs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InstrumentationLibraryLogs) ProtoMessage added in v0.7.0

func (*InstrumentationLibraryLogs) ProtoMessage()

func (*InstrumentationLibraryLogs) Reset added in v0.7.0

func (m *InstrumentationLibraryLogs) Reset()

func (*InstrumentationLibraryLogs) Size added in v0.7.0

func (m *InstrumentationLibraryLogs) Size() (n int)

func (*InstrumentationLibraryLogs) String added in v0.7.0

func (m *InstrumentationLibraryLogs) String() string

func (*InstrumentationLibraryLogs) Unmarshal added in v0.7.0

func (m *InstrumentationLibraryLogs) Unmarshal(dAtA []byte) error

func (*InstrumentationLibraryLogs) XXX_DiscardUnknown added in v0.7.0

func (m *InstrumentationLibraryLogs) XXX_DiscardUnknown()

func (*InstrumentationLibraryLogs) XXX_Marshal added in v0.7.0

func (m *InstrumentationLibraryLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstrumentationLibraryLogs) XXX_Merge added in v0.7.0

func (m *InstrumentationLibraryLogs) XXX_Merge(src proto.Message)

func (*InstrumentationLibraryLogs) XXX_Size added in v0.7.0

func (m *InstrumentationLibraryLogs) XXX_Size() int

func (*InstrumentationLibraryLogs) XXX_Unmarshal added in v0.7.0

func (m *InstrumentationLibraryLogs) XXX_Unmarshal(b []byte) error

type LogRecord

type LogRecord struct {
	// time_unix_nano is the time when the event occurred.
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
	// Value of 0 indicates unknown or missing timestamp.
	TimeUnixNano uint64 `protobuf:"fixed64,1,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
	// Numerical value of the severity, normalized to values described in Log Data Model.
	// [Optional].
	SeverityNumber SeverityNumber `` /* 152-byte string literal not displayed */
	// The severity text (also known as log level). The original string representation as
	// it is known at the source. [Optional].
	SeverityText string `protobuf:"bytes,3,opt,name=severity_text,json=severityText,proto3" json:"severity_text,omitempty"`
	// Short event identifier that does not contain varying parts. Name describes
	// what happened (e.g. "ProcessStarted"). Recommended to be no longer than 50
	// characters. Not guaranteed to be unique in any way. [Optional].
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// A value containing the body of the log record. Can be for example a human-readable
	// string message (including multi-line) describing the event in a free form or it can
	// be a structured data composed of arrays and maps of other values. [Optional].
	Body *v11.AnyValue `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
	// Additional attributes that describe the specific event occurrence. [Optional].
	Attributes             []*v11.KeyValue `protobuf:"bytes,6,rep,name=attributes,proto3" json:"attributes,omitempty"`
	DroppedAttributesCount uint32          `` /* 130-byte string literal not displayed */
	// Flags, a bit field. 8 least significant bits are the trace flags as
	// defined in W3C Trace Context specification. 24 most significant bits are reserved
	// and must be set to 0. Readers must not assume that 24 most significant bits
	// will be zero and must correctly mask the bits when reading 8-bit trace flag (use
	// flags & TRACE_FLAGS_MASK). [Optional].
	Flags uint32 `protobuf:"fixed32,8,opt,name=flags,proto3" json:"flags,omitempty"`
	// A unique identifier for a trace. All logs from the same trace share
	// the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes
	// is considered invalid. Can be set for logs that are part of request processing
	// and have an assigned trace id. [Optional].
	TraceId []byte `protobuf:"bytes,9,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// A unique identifier for a span within a trace, assigned when the span
	// is created. The ID is an 8-byte array. An ID with all zeroes is considered
	// invalid. Can be set for logs that are part of a particular processing span.
	// If span_id is present trace_id SHOULD be also present. [Optional].
	SpanId []byte `protobuf:"bytes,10,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
}

A log record according to OpenTelemetry Log Data Model: https://github.com/open-telemetry/oteps/blob/master/text/logs/0097-log-data-model.md

func (*LogRecord) Descriptor

func (*LogRecord) Descriptor() ([]byte, []int)

func (*LogRecord) GetAttributes

func (m *LogRecord) GetAttributes() []*v11.KeyValue

func (*LogRecord) GetBody

func (m *LogRecord) GetBody() *v11.AnyValue

func (*LogRecord) GetDroppedAttributesCount

func (m *LogRecord) GetDroppedAttributesCount() uint32

func (*LogRecord) GetFlags

func (m *LogRecord) GetFlags() uint32

func (*LogRecord) GetName added in v0.7.0

func (m *LogRecord) GetName() string

func (*LogRecord) GetSeverityNumber

func (m *LogRecord) GetSeverityNumber() SeverityNumber

func (*LogRecord) GetSeverityText

func (m *LogRecord) GetSeverityText() string

func (*LogRecord) GetSpanId

func (m *LogRecord) GetSpanId() []byte

func (*LogRecord) GetTimeUnixNano added in v0.7.0

func (m *LogRecord) GetTimeUnixNano() uint64

func (*LogRecord) GetTraceId

func (m *LogRecord) GetTraceId() []byte

func (*LogRecord) Marshal

func (m *LogRecord) Marshal() (dAtA []byte, err error)

func (*LogRecord) MarshalTo

func (m *LogRecord) MarshalTo(dAtA []byte) (int, error)

func (*LogRecord) MarshalToSizedBuffer added in v0.5.0

func (m *LogRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LogRecord) ProtoMessage

func (*LogRecord) ProtoMessage()

func (*LogRecord) Reset

func (m *LogRecord) Reset()

func (*LogRecord) Size

func (m *LogRecord) Size() (n int)

func (*LogRecord) String

func (m *LogRecord) String() string

func (*LogRecord) Unmarshal

func (m *LogRecord) Unmarshal(dAtA []byte) error

func (*LogRecord) XXX_DiscardUnknown added in v0.5.0

func (m *LogRecord) XXX_DiscardUnknown()

func (*LogRecord) XXX_Marshal added in v0.5.0

func (m *LogRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LogRecord) XXX_Merge added in v0.5.0

func (m *LogRecord) XXX_Merge(src proto.Message)

func (*LogRecord) XXX_Size added in v0.5.0

func (m *LogRecord) XXX_Size() int

func (*LogRecord) XXX_Unmarshal added in v0.5.0

func (m *LogRecord) XXX_Unmarshal(b []byte) error

type LogRecordFlags

type LogRecordFlags int32

Masks for LogRecord.flags field.

const (
	LogRecordFlags_UNDEFINED_LOG_RECORD_FLAG LogRecordFlags = 0
	LogRecordFlags_TRACE_FLAGS_MASK          LogRecordFlags = 255
)

func (LogRecordFlags) EnumDescriptor

func (LogRecordFlags) EnumDescriptor() ([]byte, []int)

func (LogRecordFlags) String

func (x LogRecordFlags) String() string

type ResourceLogs

type ResourceLogs struct {
	// The resource for the logs in this message.
	// If this field is not set then no resource info is known.
	Resource *v1.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// A list of InstrumentationLibraryLogs that originate from a resource.
	InstrumentationLibraryLogs []*InstrumentationLibraryLogs `` /* 141-byte string literal not displayed */
}

A collection of InstrumentationLibraryLogs from a Resource.

func (*ResourceLogs) Descriptor

func (*ResourceLogs) Descriptor() ([]byte, []int)

func (*ResourceLogs) GetInstrumentationLibraryLogs added in v0.7.0

func (m *ResourceLogs) GetInstrumentationLibraryLogs() []*InstrumentationLibraryLogs

func (*ResourceLogs) GetResource

func (m *ResourceLogs) GetResource() *v1.Resource

func (*ResourceLogs) Marshal

func (m *ResourceLogs) Marshal() (dAtA []byte, err error)

func (*ResourceLogs) MarshalTo

func (m *ResourceLogs) MarshalTo(dAtA []byte) (int, error)

func (*ResourceLogs) MarshalToSizedBuffer added in v0.5.0

func (m *ResourceLogs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceLogs) ProtoMessage

func (*ResourceLogs) ProtoMessage()

func (*ResourceLogs) Reset

func (m *ResourceLogs) Reset()

func (*ResourceLogs) Size

func (m *ResourceLogs) Size() (n int)

func (*ResourceLogs) String

func (m *ResourceLogs) String() string

func (*ResourceLogs) Unmarshal

func (m *ResourceLogs) Unmarshal(dAtA []byte) error

func (*ResourceLogs) XXX_DiscardUnknown added in v0.5.0

func (m *ResourceLogs) XXX_DiscardUnknown()

func (*ResourceLogs) XXX_Marshal added in v0.5.0

func (m *ResourceLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceLogs) XXX_Merge added in v0.5.0

func (m *ResourceLogs) XXX_Merge(src proto.Message)

func (*ResourceLogs) XXX_Size added in v0.5.0

func (m *ResourceLogs) XXX_Size() int

func (*ResourceLogs) XXX_Unmarshal added in v0.5.0

func (m *ResourceLogs) XXX_Unmarshal(b []byte) error

type SeverityNumber

type SeverityNumber int32

Possible values for LogRecord.SeverityNumber.

const (
	SeverityNumber_UNDEFINED_SEVERITY_NUMBER SeverityNumber = 0
	SeverityNumber_TRACE                     SeverityNumber = 1
	SeverityNumber_TRACE2                    SeverityNumber = 2
	SeverityNumber_TRACE3                    SeverityNumber = 3
	SeverityNumber_TRACE4                    SeverityNumber = 4
	SeverityNumber_DEBUG                     SeverityNumber = 5
	SeverityNumber_DEBUG2                    SeverityNumber = 6
	SeverityNumber_DEBUG3                    SeverityNumber = 7
	SeverityNumber_DEBUG4                    SeverityNumber = 8
	SeverityNumber_INFO                      SeverityNumber = 9
	SeverityNumber_INFO2                     SeverityNumber = 10
	SeverityNumber_INFO3                     SeverityNumber = 11
	SeverityNumber_INFO4                     SeverityNumber = 12
	SeverityNumber_WARN                      SeverityNumber = 13
	SeverityNumber_WARN2                     SeverityNumber = 14
	SeverityNumber_WARN3                     SeverityNumber = 15
	SeverityNumber_WARN4                     SeverityNumber = 16
	SeverityNumber_ERROR                     SeverityNumber = 17
	SeverityNumber_ERROR2                    SeverityNumber = 18
	SeverityNumber_ERROR3                    SeverityNumber = 19
	SeverityNumber_ERROR4                    SeverityNumber = 20
	SeverityNumber_FATAL                     SeverityNumber = 21
	SeverityNumber_FATAL2                    SeverityNumber = 22
	SeverityNumber_FATAL3                    SeverityNumber = 23
	SeverityNumber_FATAL4                    SeverityNumber = 24
)

func (SeverityNumber) EnumDescriptor

func (SeverityNumber) EnumDescriptor() ([]byte, []int)

func (SeverityNumber) String

func (x SeverityNumber) String() string

Jump to

Keyboard shortcuts

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