v1

package
v0.0.0-...-c8bf5b5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTraceConfig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTraceConfig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTraceConfig = fmt.Errorf("proto: unexpected end of group")
)
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")
)
View Source
var ConstantSampler_ConstantDecision_name = map[int32]string{
	0: "ALWAYS_OFF",
	1: "ALWAYS_ON",
	2: "ALWAYS_PARENT",
}
View Source
var ConstantSampler_ConstantDecision_value = map[string]int32{
	"ALWAYS_OFF":    0,
	"ALWAYS_ON":     1,
	"ALWAYS_PARENT": 2,
}

Functions

func RegisterTraceServiceServer

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

Types

type ConstantSampler

type ConstantSampler struct {
	Decision ConstantSampler_ConstantDecision `` /* 141-byte string literal not displayed */
}

Sampler that always makes a constant decision on span sampling.

func (*ConstantSampler) Descriptor

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

func (*ConstantSampler) GetDecision

func (*ConstantSampler) Marshal

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

func (*ConstantSampler) MarshalTo

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

func (*ConstantSampler) MarshalToSizedBuffer

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

func (*ConstantSampler) ProtoMessage

func (*ConstantSampler) ProtoMessage()

func (*ConstantSampler) Reset

func (m *ConstantSampler) Reset()

func (*ConstantSampler) Size

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

func (*ConstantSampler) String

func (m *ConstantSampler) String() string

func (*ConstantSampler) Unmarshal

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

func (*ConstantSampler) XXX_DiscardUnknown

func (m *ConstantSampler) XXX_DiscardUnknown()

func (*ConstantSampler) XXX_Marshal

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

func (*ConstantSampler) XXX_Merge

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

func (*ConstantSampler) XXX_Size

func (m *ConstantSampler) XXX_Size() int

func (*ConstantSampler) XXX_Unmarshal

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

type ConstantSampler_ConstantDecision

type ConstantSampler_ConstantDecision int32

How spans should be sampled: - Always off - Always on - Always follow the parent Span's decision (off if no parent).

const (
	ConstantSampler_ALWAYS_OFF    ConstantSampler_ConstantDecision = 0
	ConstantSampler_ALWAYS_ON     ConstantSampler_ConstantDecision = 1
	ConstantSampler_ALWAYS_PARENT ConstantSampler_ConstantDecision = 2
)

func (ConstantSampler_ConstantDecision) EnumDescriptor

func (ConstantSampler_ConstantDecision) EnumDescriptor() ([]byte, []int)

func (ConstantSampler_ConstantDecision) String

type ExportTracePartialSuccess

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

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

func (*ExportTracePartialSuccess) GetErrorMessage

func (m *ExportTracePartialSuccess) GetErrorMessage() string

func (*ExportTracePartialSuccess) GetRejectedSpans

func (m *ExportTracePartialSuccess) GetRejectedSpans() int64

func (*ExportTracePartialSuccess) Marshal

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

func (*ExportTracePartialSuccess) MarshalTo

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

func (*ExportTracePartialSuccess) MarshalToSizedBuffer

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

func (*ExportTracePartialSuccess) ProtoMessage

func (*ExportTracePartialSuccess) ProtoMessage()

func (*ExportTracePartialSuccess) Reset

func (m *ExportTracePartialSuccess) Reset()

func (*ExportTracePartialSuccess) Size

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

func (*ExportTracePartialSuccess) String

func (m *ExportTracePartialSuccess) String() string

func (*ExportTracePartialSuccess) Unmarshal

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

func (*ExportTracePartialSuccess) XXX_DiscardUnknown

func (m *ExportTracePartialSuccess) XXX_DiscardUnknown()

func (*ExportTracePartialSuccess) XXX_Marshal

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

func (*ExportTracePartialSuccess) XXX_Merge

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

func (*ExportTracePartialSuccess) XXX_Size

func (m *ExportTracePartialSuccess) XXX_Size() int

func (*ExportTracePartialSuccess) XXX_Unmarshal

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,omitempty"`
}

func (*ExportTraceServiceResponse) Descriptor

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

func (*ExportTraceServiceResponse) GetPartialSuccess

func (m *ExportTraceServiceResponse) GetPartialSuccess() *ExportTracePartialSuccess

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 ProbabilitySampler

type ProbabilitySampler struct {
	// The desired probability of sampling. Must be within [0.0, 1.0].
	SamplingProbability float64 `protobuf:"fixed64,1,opt,name=samplingProbability,proto3" json:"samplingProbability,omitempty"`
}

Sampler that tries to uniformly sample traces with a given probability. The probability of sampling a trace is equal to that of the specified probability.

func (*ProbabilitySampler) Descriptor

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

func (*ProbabilitySampler) GetSamplingProbability

func (m *ProbabilitySampler) GetSamplingProbability() float64

func (*ProbabilitySampler) Marshal

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

func (*ProbabilitySampler) MarshalTo

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

func (*ProbabilitySampler) MarshalToSizedBuffer

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

func (*ProbabilitySampler) ProtoMessage

func (*ProbabilitySampler) ProtoMessage()

func (*ProbabilitySampler) Reset

func (m *ProbabilitySampler) Reset()

func (*ProbabilitySampler) Size

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

func (*ProbabilitySampler) String

func (m *ProbabilitySampler) String() string

func (*ProbabilitySampler) Unmarshal

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

func (*ProbabilitySampler) XXX_DiscardUnknown

func (m *ProbabilitySampler) XXX_DiscardUnknown()

func (*ProbabilitySampler) XXX_Marshal

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

func (*ProbabilitySampler) XXX_Merge

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

func (*ProbabilitySampler) XXX_Size

func (m *ProbabilitySampler) XXX_Size() int

func (*ProbabilitySampler) XXX_Unmarshal

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

type RateLimitingSampler

type RateLimitingSampler struct {
	// Rate per second.
	Qps int64 `protobuf:"varint,1,opt,name=qps,proto3" json:"qps,omitempty"`
}

Sampler that tries to sample with a rate per time window.

func (*RateLimitingSampler) Descriptor

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

func (*RateLimitingSampler) GetQps

func (m *RateLimitingSampler) GetQps() int64

func (*RateLimitingSampler) Marshal

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

func (*RateLimitingSampler) MarshalTo

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

func (*RateLimitingSampler) MarshalToSizedBuffer

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

func (*RateLimitingSampler) ProtoMessage

func (*RateLimitingSampler) ProtoMessage()

func (*RateLimitingSampler) Reset

func (m *RateLimitingSampler) Reset()

func (*RateLimitingSampler) Size

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

func (*RateLimitingSampler) String

func (m *RateLimitingSampler) String() string

func (*RateLimitingSampler) Unmarshal

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

func (*RateLimitingSampler) XXX_DiscardUnknown

func (m *RateLimitingSampler) XXX_DiscardUnknown()

func (*RateLimitingSampler) XXX_Marshal

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

func (*RateLimitingSampler) XXX_Merge

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

func (*RateLimitingSampler) XXX_Size

func (m *RateLimitingSampler) XXX_Size() int

func (*RateLimitingSampler) XXX_Unmarshal

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

type TraceConfig

type TraceConfig struct {
	// The global default sampler used to make decisions on span sampling.
	//
	// Types that are valid to be assigned to Sampler:
	//	*TraceConfig_ConstantSampler
	//	*TraceConfig_ProbabilitySampler
	//	*TraceConfig_RateLimitingSampler
	Sampler isTraceConfig_Sampler `protobuf_oneof:"sampler"`
	// The global default max number of attributes per span.
	MaxNumberOfAttributes int64 `` /* 129-byte string literal not displayed */
	// The global default max number of annotation events per span.
	MaxNumberOfTimedEvents int64 `` /* 134-byte string literal not displayed */
	// The global default max number of attributes per timed event.
	MaxNumberOfAttributesPerTimedEvent int64 `` /* 174-byte string literal not displayed */
	// The global default max number of link entries per span.
	MaxNumberOfLinks int64 `protobuf:"varint,7,opt,name=max_number_of_links,json=maxNumberOfLinks,proto3" json:"max_number_of_links,omitempty"`
	// The global default max number of attributes per span.
	MaxNumberOfAttributesPerLink int64 `` /* 154-byte string literal not displayed */
}

Global configuration of the trace service. All fields must be specified, or the default (zero) values will be used for each type.

func (*TraceConfig) Descriptor

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

func (*TraceConfig) GetConstantSampler

func (m *TraceConfig) GetConstantSampler() *ConstantSampler

func (*TraceConfig) GetMaxNumberOfAttributes

func (m *TraceConfig) GetMaxNumberOfAttributes() int64
func (m *TraceConfig) GetMaxNumberOfAttributesPerLink() int64

func (*TraceConfig) GetMaxNumberOfAttributesPerTimedEvent

func (m *TraceConfig) GetMaxNumberOfAttributesPerTimedEvent() int64
func (m *TraceConfig) GetMaxNumberOfLinks() int64

func (*TraceConfig) GetMaxNumberOfTimedEvents

func (m *TraceConfig) GetMaxNumberOfTimedEvents() int64

func (*TraceConfig) GetProbabilitySampler

func (m *TraceConfig) GetProbabilitySampler() *ProbabilitySampler

func (*TraceConfig) GetRateLimitingSampler

func (m *TraceConfig) GetRateLimitingSampler() *RateLimitingSampler

func (*TraceConfig) GetSampler

func (m *TraceConfig) GetSampler() isTraceConfig_Sampler

func (*TraceConfig) Marshal

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

func (*TraceConfig) MarshalTo

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

func (*TraceConfig) MarshalToSizedBuffer

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

func (*TraceConfig) ProtoMessage

func (*TraceConfig) ProtoMessage()

func (*TraceConfig) Reset

func (m *TraceConfig) Reset()

func (*TraceConfig) Size

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

func (*TraceConfig) String

func (m *TraceConfig) String() string

func (*TraceConfig) Unmarshal

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

func (*TraceConfig) XXX_DiscardUnknown

func (m *TraceConfig) XXX_DiscardUnknown()

func (*TraceConfig) XXX_Marshal

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

func (*TraceConfig) XXX_Merge

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

func (*TraceConfig) XXX_OneofWrappers

func (*TraceConfig) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*TraceConfig) XXX_Size

func (m *TraceConfig) XXX_Size() int

func (*TraceConfig) XXX_Unmarshal

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

type TraceConfig_ConstantSampler

type TraceConfig_ConstantSampler struct {
	ConstantSampler *ConstantSampler `protobuf:"bytes,1,opt,name=constant_sampler,json=constantSampler,proto3,oneof" json:"constant_sampler,omitempty"`
}

func (*TraceConfig_ConstantSampler) MarshalTo

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

func (*TraceConfig_ConstantSampler) MarshalToSizedBuffer

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

func (*TraceConfig_ConstantSampler) Size

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

type TraceConfig_ProbabilitySampler

type TraceConfig_ProbabilitySampler struct {
	ProbabilitySampler *ProbabilitySampler `protobuf:"bytes,2,opt,name=probability_sampler,json=probabilitySampler,proto3,oneof" json:"probability_sampler,omitempty"`
}

func (*TraceConfig_ProbabilitySampler) MarshalTo

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

func (*TraceConfig_ProbabilitySampler) MarshalToSizedBuffer

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

func (*TraceConfig_ProbabilitySampler) Size

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

type TraceConfig_RateLimitingSampler

type TraceConfig_RateLimitingSampler struct {
	RateLimitingSampler *RateLimitingSampler `` /* 126-byte string literal not displayed */
}

func (*TraceConfig_RateLimitingSampler) MarshalTo

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

func (*TraceConfig_RateLimitingSampler) MarshalToSizedBuffer

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

func (*TraceConfig_RateLimitingSampler) Size

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

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