Documentation ¶
Index ¶
- Variables
- func RegisterLogsServiceServer(s *grpc.Server, srv LogsServiceServer)
- type ExportLogsPartialSuccess
- func (*ExportLogsPartialSuccess) Descriptor() ([]byte, []int)
- func (m *ExportLogsPartialSuccess) GetErrorMessage() string
- func (m *ExportLogsPartialSuccess) GetRejectedLogRecords() int64
- func (m *ExportLogsPartialSuccess) Marshal() (dAtA []byte, err error)
- func (m *ExportLogsPartialSuccess) MarshalTo(dAtA []byte) (int, error)
- func (m *ExportLogsPartialSuccess) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExportLogsPartialSuccess) ProtoMessage()
- func (m *ExportLogsPartialSuccess) Reset()
- func (m *ExportLogsPartialSuccess) Size() (n int)
- func (m *ExportLogsPartialSuccess) String() string
- func (m *ExportLogsPartialSuccess) Unmarshal(dAtA []byte) error
- func (m *ExportLogsPartialSuccess) XXX_DiscardUnknown()
- func (m *ExportLogsPartialSuccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExportLogsPartialSuccess) XXX_Merge(src proto.Message)
- func (m *ExportLogsPartialSuccess) XXX_Size() int
- func (m *ExportLogsPartialSuccess) XXX_Unmarshal(b []byte) error
- type ExportLogsServiceRequest
- func (*ExportLogsServiceRequest) Descriptor() ([]byte, []int)
- func (m *ExportLogsServiceRequest) GetResourceLogs() []*v1.ResourceLogs
- func (m *ExportLogsServiceRequest) Marshal() (dAtA []byte, err error)
- func (m *ExportLogsServiceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ExportLogsServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExportLogsServiceRequest) ProtoMessage()
- func (m *ExportLogsServiceRequest) Reset()
- func (m *ExportLogsServiceRequest) Size() (n int)
- func (m *ExportLogsServiceRequest) String() string
- func (m *ExportLogsServiceRequest) Unmarshal(dAtA []byte) error
- func (m *ExportLogsServiceRequest) XXX_DiscardUnknown()
- func (m *ExportLogsServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExportLogsServiceRequest) XXX_Merge(src proto.Message)
- func (m *ExportLogsServiceRequest) XXX_Size() int
- func (m *ExportLogsServiceRequest) XXX_Unmarshal(b []byte) error
- type ExportLogsServiceResponse
- func (*ExportLogsServiceResponse) Descriptor() ([]byte, []int)
- func (m *ExportLogsServiceResponse) GetPartialSuccess() ExportLogsPartialSuccess
- func (m *ExportLogsServiceResponse) Marshal() (dAtA []byte, err error)
- func (m *ExportLogsServiceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ExportLogsServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExportLogsServiceResponse) ProtoMessage()
- func (m *ExportLogsServiceResponse) Reset()
- func (m *ExportLogsServiceResponse) Size() (n int)
- func (m *ExportLogsServiceResponse) String() string
- func (m *ExportLogsServiceResponse) Unmarshal(dAtA []byte) error
- func (m *ExportLogsServiceResponse) XXX_DiscardUnknown()
- func (m *ExportLogsServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExportLogsServiceResponse) XXX_Merge(src proto.Message)
- func (m *ExportLogsServiceResponse) XXX_Size() int
- func (m *ExportLogsServiceResponse) XXX_Unmarshal(b []byte) error
- type LogsServiceClient
- type LogsServiceServer
- type UnimplementedLogsServiceServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterLogsServiceServer ¶
func RegisterLogsServiceServer(s *grpc.Server, srv LogsServiceServer)
Types ¶
type ExportLogsPartialSuccess ¶ added in v0.58.0
type ExportLogsPartialSuccess struct { // The number of rejected log records. // // A `rejected_<signal>` field holding a `0` value indicates that the // request was fully accepted. RejectedLogRecords int64 `protobuf:"varint,1,opt,name=rejected_log_records,json=rejectedLogRecords,proto3" json:"rejected_log_records,omitempty"` // A developer-facing human-readable message in English. It should be used // either to explain why the server rejected parts of the data during a partial // success or to convey warnings/suggestions during a full success. The message // should offer guidance on how users can address such issues. // // error_message is an optional field. An error_message with an empty value // is equivalent to it not being set. ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` }
func (*ExportLogsPartialSuccess) Descriptor ¶ added in v0.58.0
func (*ExportLogsPartialSuccess) Descriptor() ([]byte, []int)
func (*ExportLogsPartialSuccess) GetErrorMessage ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) GetErrorMessage() string
func (*ExportLogsPartialSuccess) GetRejectedLogRecords ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) GetRejectedLogRecords() int64
func (*ExportLogsPartialSuccess) Marshal ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) Marshal() (dAtA []byte, err error)
func (*ExportLogsPartialSuccess) MarshalTo ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) MarshalTo(dAtA []byte) (int, error)
func (*ExportLogsPartialSuccess) MarshalToSizedBuffer ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExportLogsPartialSuccess) ProtoMessage ¶ added in v0.58.0
func (*ExportLogsPartialSuccess) ProtoMessage()
func (*ExportLogsPartialSuccess) Reset ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) Reset()
func (*ExportLogsPartialSuccess) Size ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) Size() (n int)
func (*ExportLogsPartialSuccess) String ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) String() string
func (*ExportLogsPartialSuccess) Unmarshal ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) Unmarshal(dAtA []byte) error
func (*ExportLogsPartialSuccess) XXX_DiscardUnknown ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) XXX_DiscardUnknown()
func (*ExportLogsPartialSuccess) XXX_Marshal ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExportLogsPartialSuccess) XXX_Merge ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) XXX_Merge(src proto.Message)
func (*ExportLogsPartialSuccess) XXX_Size ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) XXX_Size() int
func (*ExportLogsPartialSuccess) XXX_Unmarshal ¶ added in v0.58.0
func (m *ExportLogsPartialSuccess) XXX_Unmarshal(b []byte) error
type ExportLogsServiceRequest ¶
type ExportLogsServiceRequest 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 []*v1.ResourceLogs `protobuf:"bytes,1,rep,name=resource_logs,json=resourceLogs,proto3" json:"resource_logs,omitempty"` }
func (*ExportLogsServiceRequest) Descriptor ¶
func (*ExportLogsServiceRequest) Descriptor() ([]byte, []int)
func (*ExportLogsServiceRequest) GetResourceLogs ¶
func (m *ExportLogsServiceRequest) GetResourceLogs() []*v1.ResourceLogs
func (*ExportLogsServiceRequest) Marshal ¶
func (m *ExportLogsServiceRequest) Marshal() (dAtA []byte, err error)
func (*ExportLogsServiceRequest) MarshalTo ¶
func (m *ExportLogsServiceRequest) MarshalTo(dAtA []byte) (int, error)
func (*ExportLogsServiceRequest) MarshalToSizedBuffer ¶
func (m *ExportLogsServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExportLogsServiceRequest) ProtoMessage ¶
func (*ExportLogsServiceRequest) ProtoMessage()
func (*ExportLogsServiceRequest) Reset ¶
func (m *ExportLogsServiceRequest) Reset()
func (*ExportLogsServiceRequest) Size ¶
func (m *ExportLogsServiceRequest) Size() (n int)
func (*ExportLogsServiceRequest) String ¶
func (m *ExportLogsServiceRequest) String() string
func (*ExportLogsServiceRequest) Unmarshal ¶
func (m *ExportLogsServiceRequest) Unmarshal(dAtA []byte) error
func (*ExportLogsServiceRequest) XXX_DiscardUnknown ¶
func (m *ExportLogsServiceRequest) XXX_DiscardUnknown()
func (*ExportLogsServiceRequest) XXX_Marshal ¶
func (m *ExportLogsServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExportLogsServiceRequest) XXX_Merge ¶
func (m *ExportLogsServiceRequest) XXX_Merge(src proto.Message)
func (*ExportLogsServiceRequest) XXX_Size ¶
func (m *ExportLogsServiceRequest) XXX_Size() int
func (*ExportLogsServiceRequest) XXX_Unmarshal ¶
func (m *ExportLogsServiceRequest) XXX_Unmarshal(b []byte) error
type ExportLogsServiceResponse ¶
type ExportLogsServiceResponse struct { // The details of a partially successful export request. // // If the request is only partially accepted // (i.e. when the server accepts only parts of the data and rejects the rest) // the server MUST initialize the `partial_success` field and MUST // set the `rejected_<signal>` with the number of items it rejected. // // Servers MAY also make use of the `partial_success` field to convey // warnings/suggestions to senders even when the request was fully accepted. // In such cases, the `rejected_<signal>` MUST have a value of `0` and // the `error_message` MUST be non-empty. // // A `partial_success` message with an empty value (rejected_<signal> = 0 and // `error_message` = "") is equivalent to it not being set/present. Senders // SHOULD interpret it the same way as in the full success case. PartialSuccess ExportLogsPartialSuccess `protobuf:"bytes,1,opt,name=partial_success,json=partialSuccess,proto3" json:"partial_success"` }
func (*ExportLogsServiceResponse) Descriptor ¶
func (*ExportLogsServiceResponse) Descriptor() ([]byte, []int)
func (*ExportLogsServiceResponse) GetPartialSuccess ¶ added in v0.58.0
func (m *ExportLogsServiceResponse) GetPartialSuccess() ExportLogsPartialSuccess
func (*ExportLogsServiceResponse) Marshal ¶
func (m *ExportLogsServiceResponse) Marshal() (dAtA []byte, err error)
func (*ExportLogsServiceResponse) MarshalTo ¶
func (m *ExportLogsServiceResponse) MarshalTo(dAtA []byte) (int, error)
func (*ExportLogsServiceResponse) MarshalToSizedBuffer ¶
func (m *ExportLogsServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExportLogsServiceResponse) ProtoMessage ¶
func (*ExportLogsServiceResponse) ProtoMessage()
func (*ExportLogsServiceResponse) Reset ¶
func (m *ExportLogsServiceResponse) Reset()
func (*ExportLogsServiceResponse) Size ¶
func (m *ExportLogsServiceResponse) Size() (n int)
func (*ExportLogsServiceResponse) String ¶
func (m *ExportLogsServiceResponse) String() string
func (*ExportLogsServiceResponse) Unmarshal ¶
func (m *ExportLogsServiceResponse) Unmarshal(dAtA []byte) error
func (*ExportLogsServiceResponse) XXX_DiscardUnknown ¶
func (m *ExportLogsServiceResponse) XXX_DiscardUnknown()
func (*ExportLogsServiceResponse) XXX_Marshal ¶
func (m *ExportLogsServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExportLogsServiceResponse) XXX_Merge ¶
func (m *ExportLogsServiceResponse) XXX_Merge(src proto.Message)
func (*ExportLogsServiceResponse) XXX_Size ¶
func (m *ExportLogsServiceResponse) XXX_Size() int
func (*ExportLogsServiceResponse) XXX_Unmarshal ¶
func (m *ExportLogsServiceResponse) XXX_Unmarshal(b []byte) error
type LogsServiceClient ¶
type LogsServiceClient interface { // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(ctx context.Context, in *ExportLogsServiceRequest, opts ...grpc.CallOption) (*ExportLogsServiceResponse, error) }
LogsServiceClient is the client API for LogsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLogsServiceClient ¶
func NewLogsServiceClient(cc *grpc.ClientConn) LogsServiceClient
type LogsServiceServer ¶
type LogsServiceServer interface { // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(context.Context, *ExportLogsServiceRequest) (*ExportLogsServiceResponse, error) }
LogsServiceServer is the server API for LogsService service.
type UnimplementedLogsServiceServer ¶
type UnimplementedLogsServiceServer struct { }
UnimplementedLogsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedLogsServiceServer) Export ¶
func (*UnimplementedLogsServiceServer) Export(ctx context.Context, req *ExportLogsServiceRequest) (*ExportLogsServiceResponse, error)
Click to show internal directories.
Click to hide internal directories.