v1

package
v0.66.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTraceService        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTraceService          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTraceService = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterTraceServiceServer

func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer)

Types

type ExportTracePartialSuccess added in v0.58.0

type ExportTracePartialSuccess struct {
	// The number of rejected spans.
	//
	// A `rejected_<signal>` field holding a `0` value indicates that the
	// request was fully accepted.
	RejectedSpans int64 `protobuf:"varint,1,opt,name=rejected_spans,json=rejectedSpans,proto3" json:"rejected_spans,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 (*ExportTracePartialSuccess) Descriptor added in v0.58.0

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

func (*ExportTracePartialSuccess) GetErrorMessage added in v0.58.0

func (m *ExportTracePartialSuccess) GetErrorMessage() string

func (*ExportTracePartialSuccess) GetRejectedSpans added in v0.58.0

func (m *ExportTracePartialSuccess) GetRejectedSpans() int64

func (*ExportTracePartialSuccess) Marshal added in v0.58.0

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

func (*ExportTracePartialSuccess) MarshalTo added in v0.58.0

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

func (*ExportTracePartialSuccess) MarshalToSizedBuffer added in v0.58.0

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

func (*ExportTracePartialSuccess) ProtoMessage added in v0.58.0

func (*ExportTracePartialSuccess) ProtoMessage()

func (*ExportTracePartialSuccess) Reset added in v0.58.0

func (m *ExportTracePartialSuccess) Reset()

func (*ExportTracePartialSuccess) Size added in v0.58.0

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

func (*ExportTracePartialSuccess) String added in v0.58.0

func (m *ExportTracePartialSuccess) String() string

func (*ExportTracePartialSuccess) Unmarshal added in v0.58.0

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

func (*ExportTracePartialSuccess) XXX_DiscardUnknown added in v0.58.0

func (m *ExportTracePartialSuccess) XXX_DiscardUnknown()

func (*ExportTracePartialSuccess) XXX_Marshal added in v0.58.0

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

func (*ExportTracePartialSuccess) XXX_Merge added in v0.58.0

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

func (*ExportTracePartialSuccess) XXX_Size added in v0.58.0

func (m *ExportTracePartialSuccess) XXX_Size() int

func (*ExportTracePartialSuccess) XXX_Unmarshal added in v0.58.0

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

type ExportTraceServiceRequest

type ExportTraceServiceRequest struct {
	// An array of ResourceSpans.
	// 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.
	ResourceSpans []*v1.ResourceSpans `protobuf:"bytes,1,rep,name=resource_spans,json=resourceSpans,proto3" json:"resource_spans,omitempty"`
}

func (*ExportTraceServiceRequest) Descriptor

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

func (*ExportTraceServiceRequest) GetResourceSpans

func (m *ExportTraceServiceRequest) GetResourceSpans() []*v1.ResourceSpans

func (*ExportTraceServiceRequest) Marshal

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

func (*ExportTraceServiceRequest) MarshalTo

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

func (*ExportTraceServiceRequest) MarshalToSizedBuffer

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

func (*ExportTraceServiceRequest) ProtoMessage

func (*ExportTraceServiceRequest) ProtoMessage()

func (*ExportTraceServiceRequest) Reset

func (m *ExportTraceServiceRequest) Reset()

func (*ExportTraceServiceRequest) Size

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

func (*ExportTraceServiceRequest) String

func (m *ExportTraceServiceRequest) String() string

func (*ExportTraceServiceRequest) Unmarshal

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

func (*ExportTraceServiceRequest) XXX_DiscardUnknown

func (m *ExportTraceServiceRequest) XXX_DiscardUnknown()

func (*ExportTraceServiceRequest) XXX_Marshal

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

func (*ExportTraceServiceRequest) XXX_Merge

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

func (*ExportTraceServiceRequest) XXX_Size

func (m *ExportTraceServiceRequest) XXX_Size() int

func (*ExportTraceServiceRequest) XXX_Unmarshal

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

type ExportTraceServiceResponse

type ExportTraceServiceResponse 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 ExportTracePartialSuccess `protobuf:"bytes,1,opt,name=partial_success,json=partialSuccess,proto3" json:"partial_success"`
}

func (*ExportTraceServiceResponse) Descriptor

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

func (*ExportTraceServiceResponse) GetPartialSuccess added in v0.58.0

func (*ExportTraceServiceResponse) Marshal

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

func (*ExportTraceServiceResponse) MarshalTo

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

func (*ExportTraceServiceResponse) MarshalToSizedBuffer

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

func (*ExportTraceServiceResponse) ProtoMessage

func (*ExportTraceServiceResponse) ProtoMessage()

func (*ExportTraceServiceResponse) Reset

func (m *ExportTraceServiceResponse) Reset()

func (*ExportTraceServiceResponse) Size

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

func (*ExportTraceServiceResponse) String

func (m *ExportTraceServiceResponse) String() string

func (*ExportTraceServiceResponse) Unmarshal

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

func (*ExportTraceServiceResponse) XXX_DiscardUnknown

func (m *ExportTraceServiceResponse) XXX_DiscardUnknown()

func (*ExportTraceServiceResponse) XXX_Marshal

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

func (*ExportTraceServiceResponse) XXX_Merge

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

func (*ExportTraceServiceResponse) XXX_Size

func (m *ExportTraceServiceResponse) XXX_Size() int

func (*ExportTraceServiceResponse) XXX_Unmarshal

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

type TraceServiceClient

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

TraceServiceClient is the client API for TraceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTraceServiceClient

func NewTraceServiceClient(cc *grpc.ClientConn) TraceServiceClient

type TraceServiceServer

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

TraceServiceServer is the server API for TraceService service.

type UnimplementedTraceServiceServer

type UnimplementedTraceServiceServer struct {
}

UnimplementedTraceServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTraceServiceServer) Export

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL