Back to godoc.org

Package v1

v0.10.0
Latest Go to latest

The highest tagged major version is .

Published: Sep 14, 2020 | License: Apache-2.0 | Module: go.opentelemetry.io/collector

Index

Variables

var (
	ErrInvalidLengthLogs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLogs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLogs = fmt.Errorf("proto: unexpected end of group")
)
var LogRecordFlags_name = map[int32]string{
	0:   "LOG_RECORD_FLAG_UNSPECIFIED",
	255: "LOG_RECORD_FLAG_TRACE_FLAGS_MASK",
}
var LogRecordFlags_value = map[string]int32{
	"LOG_RECORD_FLAG_UNSPECIFIED":      0,
	"LOG_RECORD_FLAG_TRACE_FLAGS_MASK": 255,
}
var SeverityNumber_name = map[int32]string{
	0:  "SEVERITY_NUMBER_UNSPECIFIED",
	1:  "SEVERITY_NUMBER_TRACE",
	2:  "SEVERITY_NUMBER_TRACE2",
	3:  "SEVERITY_NUMBER_TRACE3",
	4:  "SEVERITY_NUMBER_TRACE4",
	5:  "SEVERITY_NUMBER_DEBUG",
	6:  "SEVERITY_NUMBER_DEBUG2",
	7:  "SEVERITY_NUMBER_DEBUG3",
	8:  "SEVERITY_NUMBER_DEBUG4",
	9:  "SEVERITY_NUMBER_INFO",
	10: "SEVERITY_NUMBER_INFO2",
	11: "SEVERITY_NUMBER_INFO3",
	12: "SEVERITY_NUMBER_INFO4",
	13: "SEVERITY_NUMBER_WARN",
	14: "SEVERITY_NUMBER_WARN2",
	15: "SEVERITY_NUMBER_WARN3",
	16: "SEVERITY_NUMBER_WARN4",
	17: "SEVERITY_NUMBER_ERROR",
	18: "SEVERITY_NUMBER_ERROR2",
	19: "SEVERITY_NUMBER_ERROR3",
	20: "SEVERITY_NUMBER_ERROR4",
	21: "SEVERITY_NUMBER_FATAL",
	22: "SEVERITY_NUMBER_FATAL2",
	23: "SEVERITY_NUMBER_FATAL3",
	24: "SEVERITY_NUMBER_FATAL4",
}
var SeverityNumber_value = map[string]int32{
	"SEVERITY_NUMBER_UNSPECIFIED": 0,
	"SEVERITY_NUMBER_TRACE":       1,
	"SEVERITY_NUMBER_TRACE2":      2,
	"SEVERITY_NUMBER_TRACE3":      3,
	"SEVERITY_NUMBER_TRACE4":      4,
	"SEVERITY_NUMBER_DEBUG":       5,
	"SEVERITY_NUMBER_DEBUG2":      6,
	"SEVERITY_NUMBER_DEBUG3":      7,
	"SEVERITY_NUMBER_DEBUG4":      8,
	"SEVERITY_NUMBER_INFO":        9,
	"SEVERITY_NUMBER_INFO2":       10,
	"SEVERITY_NUMBER_INFO3":       11,
	"SEVERITY_NUMBER_INFO4":       12,
	"SEVERITY_NUMBER_WARN":        13,
	"SEVERITY_NUMBER_WARN2":       14,
	"SEVERITY_NUMBER_WARN3":       15,
	"SEVERITY_NUMBER_WARN4":       16,
	"SEVERITY_NUMBER_ERROR":       17,
	"SEVERITY_NUMBER_ERROR2":      18,
	"SEVERITY_NUMBER_ERROR3":      19,
	"SEVERITY_NUMBER_ERROR4":      20,
	"SEVERITY_NUMBER_FATAL":       21,
	"SEVERITY_NUMBER_FATAL2":      22,
	"SEVERITY_NUMBER_FATAL3":      23,
	"SEVERITY_NUMBER_FATAL4":      24,
}

type InstrumentationLibraryLogs

type InstrumentationLibraryLogs struct {
	InstrumentationLibrary *v11.InstrumentationLibrary "" /* 127 byte string literal not displayed */

	Logs []*LogRecord `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"`
}

A collection of Logs produced by an InstrumentationLibrary.

func (*InstrumentationLibraryLogs) Descriptor

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

func (*InstrumentationLibraryLogs) GetInstrumentationLibrary

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

func (*InstrumentationLibraryLogs) GetLogs

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

func (*InstrumentationLibraryLogs) Marshal

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

func (*InstrumentationLibraryLogs) MarshalTo

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

func (*InstrumentationLibraryLogs) MarshalToSizedBuffer

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

func (*InstrumentationLibraryLogs) ProtoMessage

func (*InstrumentationLibraryLogs) ProtoMessage()

func (*InstrumentationLibraryLogs) Reset

func (m *InstrumentationLibraryLogs) Reset()

func (*InstrumentationLibraryLogs) Size

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

func (*InstrumentationLibraryLogs) String

func (m *InstrumentationLibraryLogs) String() string

func (*InstrumentationLibraryLogs) Unmarshal

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

func (*InstrumentationLibraryLogs) XXX_DiscardUnknown

func (m *InstrumentationLibraryLogs) XXX_DiscardUnknown()

func (*InstrumentationLibraryLogs) XXX_Marshal

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

func (*InstrumentationLibraryLogs) XXX_Merge

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

func (*InstrumentationLibraryLogs) XXX_Size

func (m *InstrumentationLibraryLogs) XXX_Size() int

func (*InstrumentationLibraryLogs) XXX_Unmarshal

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

type LogRecord

type LogRecord struct {
	TimeUnixNano uint64 `protobuf:"fixed64,1,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`

	SeverityNumber SeverityNumber "" /* 152 byte string literal not displayed */

	SeverityText string `protobuf:"bytes,3,opt,name=severity_text,json=severityText,proto3" json:"severity_text,omitempty"`

	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`

	Body *v11.AnyValue `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`

	Attributes             []*v11.KeyValue `protobuf:"bytes,6,rep,name=attributes,proto3" json:"attributes,omitempty"`
	DroppedAttributesCount uint32          "" /* 130 byte string literal not displayed */

	Flags uint32 `protobuf:"fixed32,8,opt,name=flags,proto3" json:"flags,omitempty"`

	TraceId []byte `protobuf:"bytes,9,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`

	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

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

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

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

func (m *LogRecord) XXX_DiscardUnknown()

func (*LogRecord) XXX_Marshal

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

func (*LogRecord) XXX_Merge

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

func (*LogRecord) XXX_Size

func (m *LogRecord) XXX_Size() int

func (*LogRecord) XXX_Unmarshal

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

type LogRecordFlags

type LogRecordFlags int32

Masks for LogRecord.flags field.

const (
	LogRecordFlags_LOG_RECORD_FLAG_UNSPECIFIED      LogRecordFlags = 0
	LogRecordFlags_LOG_RECORD_FLAG_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 {
	Resource *v1.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`

	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

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

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

func (m *ResourceLogs) XXX_DiscardUnknown()

func (*ResourceLogs) XXX_Marshal

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

func (*ResourceLogs) XXX_Merge

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

func (*ResourceLogs) XXX_Size

func (m *ResourceLogs) XXX_Size() int

func (*ResourceLogs) XXX_Unmarshal

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

type SeverityNumber

type SeverityNumber int32

Possible values for LogRecord.SeverityNumber.

const (
	// UNSPECIFIED is the default SeverityNumber, it MUST not be used.
	SeverityNumber_SEVERITY_NUMBER_UNSPECIFIED SeverityNumber = 0
	SeverityNumber_SEVERITY_NUMBER_TRACE       SeverityNumber = 1
	SeverityNumber_SEVERITY_NUMBER_TRACE2      SeverityNumber = 2
	SeverityNumber_SEVERITY_NUMBER_TRACE3      SeverityNumber = 3
	SeverityNumber_SEVERITY_NUMBER_TRACE4      SeverityNumber = 4
	SeverityNumber_SEVERITY_NUMBER_DEBUG       SeverityNumber = 5
	SeverityNumber_SEVERITY_NUMBER_DEBUG2      SeverityNumber = 6
	SeverityNumber_SEVERITY_NUMBER_DEBUG3      SeverityNumber = 7
	SeverityNumber_SEVERITY_NUMBER_DEBUG4      SeverityNumber = 8
	SeverityNumber_SEVERITY_NUMBER_INFO        SeverityNumber = 9
	SeverityNumber_SEVERITY_NUMBER_INFO2       SeverityNumber = 10
	SeverityNumber_SEVERITY_NUMBER_INFO3       SeverityNumber = 11
	SeverityNumber_SEVERITY_NUMBER_INFO4       SeverityNumber = 12
	SeverityNumber_SEVERITY_NUMBER_WARN        SeverityNumber = 13
	SeverityNumber_SEVERITY_NUMBER_WARN2       SeverityNumber = 14
	SeverityNumber_SEVERITY_NUMBER_WARN3       SeverityNumber = 15
	SeverityNumber_SEVERITY_NUMBER_WARN4       SeverityNumber = 16
	SeverityNumber_SEVERITY_NUMBER_ERROR       SeverityNumber = 17
	SeverityNumber_SEVERITY_NUMBER_ERROR2      SeverityNumber = 18
	SeverityNumber_SEVERITY_NUMBER_ERROR3      SeverityNumber = 19
	SeverityNumber_SEVERITY_NUMBER_ERROR4      SeverityNumber = 20
	SeverityNumber_SEVERITY_NUMBER_FATAL       SeverityNumber = 21
	SeverityNumber_SEVERITY_NUMBER_FATAL2      SeverityNumber = 22
	SeverityNumber_SEVERITY_NUMBER_FATAL3      SeverityNumber = 23
	SeverityNumber_SEVERITY_NUMBER_FATAL4      SeverityNumber = 24
)

func (SeverityNumber) EnumDescriptor

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

func (SeverityNumber) String

func (x SeverityNumber) String() string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier