Documentation ¶
Index ¶
- func RegisterGRPCServer(s *grpc.Server, srv GRPCServer)
- type ExportPartialSuccess
- func (ms ExportPartialSuccess) CopyTo(dest ExportPartialSuccess)
- func (ms ExportPartialSuccess) ErrorMessage() string
- func (ms ExportPartialSuccess) MoveTo(dest ExportPartialSuccess)
- func (ms ExportPartialSuccess) RejectedLogRecords() int64
- func (ms ExportPartialSuccess) SetErrorMessage(v string)
- func (ms ExportPartialSuccess) SetRejectedLogRecords(v int64)
- type ExportRequest
- type ExportResponse
- type GRPCClient
- type GRPCServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGRPCServer ¶ added in v0.62.0
func RegisterGRPCServer(s *grpc.Server, srv GRPCServer)
RegisterGRPCServer registers the Server to the grpc.Server.
Types ¶
type ExportPartialSuccess ¶ added in v0.63.0
type ExportPartialSuccess internal.LogsExportPartialSuccess
func NewExportPartialSuccess ¶ added in v0.63.0
func NewExportPartialSuccess() ExportPartialSuccess
NewExportPartialSuccess creates a new empty ExportPartialSuccess.
This must be used only in testing code. Users should use "AppendEmpty" when part of a Slice, OR directly access the member if this is embedded in another struct.
func (ExportPartialSuccess) CopyTo ¶ added in v0.63.0
func (ms ExportPartialSuccess) CopyTo(dest ExportPartialSuccess)
CopyTo copies all properties from the current struct overriding the destination.
func (ExportPartialSuccess) ErrorMessage ¶ added in v0.63.0
func (ms ExportPartialSuccess) ErrorMessage() string
ErrorMessage returns the errormessage associated with this ExportPartialSuccess.
func (ExportPartialSuccess) MoveTo ¶ added in v0.63.0
func (ms ExportPartialSuccess) MoveTo(dest ExportPartialSuccess)
MoveTo moves all properties from the current struct overriding the destination and resetting the current instance to its zero value
func (ExportPartialSuccess) RejectedLogRecords ¶ added in v0.63.0
func (ms ExportPartialSuccess) RejectedLogRecords() int64
RejectedLogRecords returns the rejectedlogrecords associated with this ExportPartialSuccess.
func (ExportPartialSuccess) SetErrorMessage ¶ added in v0.63.0
func (ms ExportPartialSuccess) SetErrorMessage(v string)
SetErrorMessage replaces the errormessage associated with this ExportPartialSuccess.
func (ExportPartialSuccess) SetRejectedLogRecords ¶ added in v0.63.0
func (ms ExportPartialSuccess) SetRejectedLogRecords(v int64)
SetRejectedLogRecords replaces the rejectedlogrecords associated with this ExportPartialSuccess.
type ExportRequest ¶ added in v0.63.0
type ExportRequest struct {
// contains filtered or unexported fields
}
ExportRequest represents the request for gRPC/HTTP client/server. It's a wrapper for plog.Logs data.
func NewExportRequest ¶ added in v0.63.0
func NewExportRequest() ExportRequest
NewExportRequest returns an empty ExportRequest.
func NewExportRequestFromLogs ¶ added in v0.63.0
func NewExportRequestFromLogs(ld plog.Logs) ExportRequest
NewExportRequestFromLogs returns a ExportRequest from plog.Logs. Because ExportRequest is a wrapper for plog.Logs, any changes to the provided Logs struct will be reflected in the ExportRequest and vice versa.
func (ExportRequest) Logs ¶ added in v0.63.0
func (ms ExportRequest) Logs() plog.Logs
func (ExportRequest) MarshalJSON ¶ added in v0.63.0
func (ms ExportRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals ExportRequest into JSON bytes.
func (ExportRequest) MarshalProto ¶ added in v0.63.0
func (ms ExportRequest) MarshalProto() ([]byte, error)
MarshalProto marshals ExportRequest into proto bytes.
func (ExportRequest) UnmarshalJSON ¶ added in v0.63.0
func (ms ExportRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshalls ExportRequest from JSON bytes.
func (ExportRequest) UnmarshalProto ¶ added in v0.63.0
func (ms ExportRequest) UnmarshalProto(data []byte) error
UnmarshalProto unmarshalls ExportRequest from proto bytes.
type ExportResponse ¶ added in v0.63.0
type ExportResponse struct {
// contains filtered or unexported fields
}
ExportResponse represents the response for gRPC/HTTP client/server.
func NewExportResponse ¶ added in v0.63.0
func NewExportResponse() ExportResponse
NewExportResponse returns an empty ExportResponse.
func (ExportResponse) MarshalJSON ¶ added in v0.63.0
func (lr ExportResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals ExportResponse into JSON bytes.
func (ExportResponse) MarshalProto ¶ added in v0.63.0
func (lr ExportResponse) MarshalProto() ([]byte, error)
MarshalProto marshals ExportResponse into proto bytes.
func (ExportResponse) PartialSuccess ¶ added in v0.63.0
func (lr ExportResponse) PartialSuccess() ExportPartialSuccess
PartialSuccess returns the ExportPartialSuccess associated with this ExportResponse.
func (ExportResponse) UnmarshalJSON ¶ added in v0.63.0
func (lr ExportResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshalls ExportResponse from JSON bytes.
func (ExportResponse) UnmarshalProto ¶ added in v0.63.0
func (lr ExportResponse) UnmarshalProto(data []byte) error
UnmarshalProto unmarshalls ExportResponse from proto bytes.
type GRPCClient ¶ added in v0.61.0
type GRPCClient interface { // Export plog.Logs to the server. // // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(ctx context.Context, request ExportRequest, opts ...grpc.CallOption) (ExportResponse, error) }
GRPCClient is the client API for OTLP-GRPC Logs service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGRPCClient ¶ added in v0.63.0
func NewGRPCClient(cc *grpc.ClientConn) GRPCClient
NewGRPCClient returns a new GRPCClient connected using the given connection.
type GRPCServer ¶ added in v0.61.0
type GRPCServer interface { // Export is called every time a new request is received. // // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(context.Context, ExportRequest) (ExportResponse, error) }
GRPCServer is the server API for OTLP gRPC LogsService service.