Documentation ¶
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
- func RegisterLogServiceServer(s *grpc.Server, srv LogServiceServer)
- type ExportLogServiceRequest
- func (*ExportLogServiceRequest) Descriptor() ([]byte, []int)
- func (m *ExportLogServiceRequest) GetResourceLogs() []*ResourceLogs
- func (m *ExportLogServiceRequest) Marshal() (dAtA []byte, err error)
- func (m *ExportLogServiceRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ExportLogServiceRequest) ProtoMessage()
- func (m *ExportLogServiceRequest) Reset()
- func (m *ExportLogServiceRequest) Size() (n int)
- func (m *ExportLogServiceRequest) String() string
- func (m *ExportLogServiceRequest) Unmarshal(dAtA []byte) error
- type ExportLogServiceResponse
- func (*ExportLogServiceResponse) Descriptor() ([]byte, []int)
- func (m *ExportLogServiceResponse) Marshal() (dAtA []byte, err error)
- func (m *ExportLogServiceResponse) MarshalTo(dAtA []byte) (int, error)
- func (*ExportLogServiceResponse) ProtoMessage()
- func (m *ExportLogServiceResponse) Reset()
- func (m *ExportLogServiceResponse) Size() (n int)
- func (m *ExportLogServiceResponse) String() string
- func (m *ExportLogServiceResponse) Unmarshal(dAtA []byte) error
- type LogRecord
- func (*LogRecord) Descriptor() ([]byte, []int)
- func (m *LogRecord) GetAttributes() []*opentelemetry_proto_common_v1.AttributeKeyValue
- func (m *LogRecord) GetBody() string
- func (m *LogRecord) GetDroppedAttributesCount() uint32
- func (m *LogRecord) GetFlags() uint32
- func (m *LogRecord) GetSeverityNumber() SeverityNumber
- func (m *LogRecord) GetSeverityText() string
- func (m *LogRecord) GetShortName() string
- func (m *LogRecord) GetSpanId() []byte
- func (m *LogRecord) GetTimestampUnixNano() uint64
- func (m *LogRecord) GetTraceId() []byte
- func (m *LogRecord) Marshal() (dAtA []byte, err error)
- func (m *LogRecord) MarshalTo(dAtA []byte) (int, error)
- func (*LogRecord) ProtoMessage()
- func (m *LogRecord) Reset()
- func (m *LogRecord) Size() (n int)
- func (m *LogRecord) String() string
- func (m *LogRecord) Unmarshal(dAtA []byte) error
- type LogRecordFlags
- type LogServiceClient
- type LogServiceServer
- type ResourceLogs
- func (*ResourceLogs) Descriptor() ([]byte, []int)
- func (m *ResourceLogs) GetLogs() []*LogRecord
- func (m *ResourceLogs) GetResource() *opentelemetry_proto_resource_v1.Resource
- func (m *ResourceLogs) Marshal() (dAtA []byte, err error)
- func (m *ResourceLogs) MarshalTo(dAtA []byte) (int, error)
- func (*ResourceLogs) ProtoMessage()
- func (m *ResourceLogs) Reset()
- func (m *ResourceLogs) Size() (n int)
- func (m *ResourceLogs) String() string
- func (m *ResourceLogs) Unmarshal(dAtA []byte) error
- type SeverityNumber
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthLogs = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLogs = fmt.Errorf("proto: integer overflow") )
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 ¶
func RegisterLogServiceServer ¶
func RegisterLogServiceServer(s *grpc.Server, srv LogServiceServer)
Types ¶
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 { // timestamp_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. TimestampUnixNano uint64 `protobuf:"fixed64,1,opt,name=timestamp_unix_nano,json=timestampUnixNano,proto3" json:"timestamp_unix_nano,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,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // A unique identifier for a log 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,3,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` // Optional 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 that 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:"varint,4,opt,name=flags,proto3" json:"flags,omitempty"` // Numerical value of the severity, normalized to values described in // https://github.com/open-telemetry/oteps/pull/97. Optional. SeverityNumber SeverityNumber `` /* 134-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,6,opt,name=severity_text,json=severityText,proto3" json:"severity_text,omitempty"` // Short event identifier that does not contain varying parts. ShortName describes // what happened (e.g. "ProcessStarted"). Recommended to be no longer than 50 // characters. Not guaranteed to be unique in any way. Optional. ShortName string `protobuf:"bytes,7,opt,name=short_name,json=shortName,proto3" json:"short_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. // TODO: According to Log Data Model this must be of 'any' type, but we are not yet // capable of representing it in memory so we are using string temporarily. Body string `protobuf:"bytes,8,opt,name=body,proto3" json:"body,omitempty"` // Additional attributes that describe the specific event occurrence. Optional. 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) GetAttributes ¶
func (m *LogRecord) GetAttributes() []*opentelemetry_proto_common_v1.AttributeKeyValue
func (*LogRecord) GetDroppedAttributesCount ¶
func (*LogRecord) GetSeverityNumber ¶
func (m *LogRecord) GetSeverityNumber() SeverityNumber
func (*LogRecord) GetSeverityText ¶
func (*LogRecord) GetShortName ¶
func (*LogRecord) GetTimestampUnixNano ¶
func (*LogRecord) GetTraceId ¶
func (*LogRecord) ProtoMessage ¶
func (*LogRecord) ProtoMessage()
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) 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
Click to show internal directories.
Click to hide internal directories.