Back to godoc.org
go.opentelemetry.io/collector/internal/data/opentelemetry-proto-gen/logs/v1

package v1

v0.4.0
Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module: go.opentelemetry.io/collector

Overview

Package v1 is a generated protocol buffer package.

It is generated from these files:

logs/v1/logs.proto

It has these top-level messages:

ExportLogServiceRequest
ExportLogServiceResponse
ResourceLogs
LogRecord

Index

Variables

var (
	ErrInvalidLengthLogs = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLogs   = fmt.Errorf("proto: integer overflow")
)
var LogRecordFlags_name = map[int32]string{
	0:   "UNDEFINED_LOG_RECORD_FLAG",
	255: "TRACE_FLAGS_MASK",
}
var LogRecordFlags_value = map[string]int32{
	"UNDEFINED_LOG_RECORD_FLAG": 0,
	"TRACE_FLAGS_MASK":          255,
}
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",
}
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,
}

func RegisterLogServiceServer

func RegisterLogServiceServer(s *grpc.Server, srv LogServiceServer)

type ExportLogServiceRequest

type ExportLogServiceRequest struct {
	// An array of ResourceLogs.
	// For data coming from a single resource this array will typically contain one
	// element. Intermediary nodes (such as OpenTelemetry Collector) that receive
	// data from multiple origins typically batch the data before forwarding further and
	// in that case this array will contain multiple elements.
	ResourceLogs []*ResourceLogs `protobuf:"bytes,1,rep,name=resource_logs,json=resourceLogs" json:"resource_logs,omitempty"`
}

func (*ExportLogServiceRequest) Descriptor

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

func (*ExportLogServiceRequest) GetResourceLogs

func (m *ExportLogServiceRequest) GetResourceLogs() []*ResourceLogs

func (*ExportLogServiceRequest) Marshal

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

func (*ExportLogServiceRequest) MarshalTo

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

func (*ExportLogServiceRequest) ProtoMessage

func (*ExportLogServiceRequest) ProtoMessage()

func (*ExportLogServiceRequest) Reset

func (m *ExportLogServiceRequest) Reset()

func (*ExportLogServiceRequest) Size

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

func (*ExportLogServiceRequest) String

func (m *ExportLogServiceRequest) String() string

func (*ExportLogServiceRequest) Unmarshal

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

type ExportLogServiceResponse

type ExportLogServiceResponse struct {
}

func (*ExportLogServiceResponse) Descriptor

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

func (*ExportLogServiceResponse) Marshal

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

func (*ExportLogServiceResponse) MarshalTo

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

func (*ExportLogServiceResponse) ProtoMessage

func (*ExportLogServiceResponse) ProtoMessage()

func (*ExportLogServiceResponse) Reset

func (m *ExportLogServiceResponse) Reset()

func (*ExportLogServiceResponse) Size

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

func (*ExportLogServiceResponse) String

func (m *ExportLogServiceResponse) String() string

func (*ExportLogServiceResponse) Unmarshal

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

type LogRecord

type LogRecord struct {
	TimestampUnixNano uint64 `protobuf:"fixed64,1,opt,name=timestamp_unix_nano,json=timestampUnixNano,proto3" json:"timestamp_unix_nano,omitempty"`

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

	SpanId []byte `protobuf:"bytes,3,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`

	Flags uint32 `protobuf:"varint,4,opt,name=flags,proto3" json:"flags,omitempty"`

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

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

	ShortName string `protobuf:"bytes,7,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`

	Body string `protobuf:"bytes,8,opt,name=body,proto3" json:"body,omitempty"`

	Attributes             []*opentelemetry_proto_common_v1.AttributeKeyValue `protobuf:"bytes,9,rep,name=attributes" json:"attributes,omitempty"`
	DroppedAttributesCount uint32                                             "" /* 131 byte string literal not displayed */
}

func (*LogRecord) Descriptor

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

func (*LogRecord) GetAttributes

func (m *LogRecord) GetAttributes() []*opentelemetry_proto_common_v1.AttributeKeyValue

func (*LogRecord) GetBody

func (m *LogRecord) GetBody() string

func (*LogRecord) GetDroppedAttributesCount

func (m *LogRecord) GetDroppedAttributesCount() uint32

func (*LogRecord) GetFlags

func (m *LogRecord) GetFlags() uint32

func (*LogRecord) GetSeverityNumber

func (m *LogRecord) GetSeverityNumber() SeverityNumber

func (*LogRecord) GetSeverityText

func (m *LogRecord) GetSeverityText() string

func (*LogRecord) GetShortName

func (m *LogRecord) GetShortName() string

func (*LogRecord) GetSpanId

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

func (*LogRecord) GetTimestampUnixNano

func (m *LogRecord) GetTimestampUnixNano() 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) 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

type LogRecordFlags

type LogRecordFlags int32
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 LogServiceClient

type LogServiceClient interface {
	// For performance reasons, it is recommended to keep this RPC
	// alive for the entire life of the application.
	Export(ctx context.Context, in *ExportLogServiceRequest, opts ...grpc.CallOption) (*ExportLogServiceResponse, error)
}

func NewLogServiceClient

func NewLogServiceClient(cc *grpc.ClientConn) LogServiceClient

type LogServiceServer

type LogServiceServer interface {
	// For performance reasons, it is recommended to keep this RPC
	// alive for the entire life of the application.
	Export(context.Context, *ExportLogServiceRequest) (*ExportLogServiceResponse, error)
}

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 *opentelemetry_proto_resource_v1.Resource `protobuf:"bytes,1,opt,name=resource" json:"resource,omitempty"`
	Logs     []*LogRecord                              `protobuf:"bytes,2,rep,name=logs" json:"logs,omitempty"`
}

A collection of logs from a Resource.

func (*ResourceLogs) Descriptor

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

func (*ResourceLogs) GetLogs

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

func (*ResourceLogs) GetResource

func (m *ResourceLogs) GetResource() *opentelemetry_proto_resource_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) 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

type SeverityNumber

type SeverityNumber int32
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
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier