import "go.opentelemetry.io/otel/exporters/otlp/internal/opentelemetry-proto-gen/collector/trace/v1"
trace_config.pb.go trace_service.pb.go
var ( ErrInvalidLengthTraceConfig = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTraceConfig = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTraceConfig = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTraceService = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTraceService = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTraceService = fmt.Errorf("proto: unexpected end of group") )
var ConstantSampler_ConstantDecision_name = map[int32]string{ 0: "ALWAYS_OFF", 1: "ALWAYS_ON", 2: "ALWAYS_PARENT", }
var ConstantSampler_ConstantDecision_value = map[string]int32{ "ALWAYS_OFF": 0, "ALWAYS_ON": 1, "ALWAYS_PARENT": 2, }
func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer)
type ConstantSampler struct { Decision ConstantSampler_ConstantDecision `protobuf:"varint,1,opt,name=decision,proto3,enum=opentelemetry.proto.trace.v1.ConstantSampler_ConstantDecision" json:"decision,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Sampler that always makes a constant decision on span sampling.
func (*ConstantSampler) Descriptor() ([]byte, []int)
func (m *ConstantSampler) GetDecision() ConstantSampler_ConstantDecision
func (m *ConstantSampler) Marshal() (dAtA []byte, err error)
func (m *ConstantSampler) MarshalTo(dAtA []byte) (int, error)
func (m *ConstantSampler) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConstantSampler) ProtoMessage()
func (m *ConstantSampler) Reset()
func (m *ConstantSampler) Size() (n int)
func (m *ConstantSampler) String() string
func (m *ConstantSampler) Unmarshal(dAtA []byte) error
func (m *ConstantSampler) XXX_DiscardUnknown()
func (m *ConstantSampler) XXX_Merge(src proto.Message)
func (m *ConstantSampler) XXX_Size() int
func (m *ConstantSampler) XXX_Unmarshal(b []byte) error
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() ([]byte, []int)
func (x ConstantSampler_ConstantDecision) String() string
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExportTraceServiceRequest) Descriptor() ([]byte, []int)
func (m *ExportTraceServiceRequest) GetResourceSpans() []*v1.ResourceSpans
func (m *ExportTraceServiceRequest) Marshal() (dAtA []byte, err error)
func (m *ExportTraceServiceRequest) MarshalTo(dAtA []byte) (int, error)
func (m *ExportTraceServiceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExportTraceServiceRequest) ProtoMessage()
func (m *ExportTraceServiceRequest) Reset()
func (m *ExportTraceServiceRequest) Size() (n int)
func (m *ExportTraceServiceRequest) String() string
func (m *ExportTraceServiceRequest) Unmarshal(dAtA []byte) error
func (m *ExportTraceServiceRequest) XXX_DiscardUnknown()
func (m *ExportTraceServiceRequest) XXX_Merge(src proto.Message)
func (m *ExportTraceServiceRequest) XXX_Size() int
func (m *ExportTraceServiceRequest) XXX_Unmarshal(b []byte) error
type ExportTraceServiceResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExportTraceServiceResponse) Descriptor() ([]byte, []int)
func (m *ExportTraceServiceResponse) Marshal() (dAtA []byte, err error)
func (m *ExportTraceServiceResponse) MarshalTo(dAtA []byte) (int, error)
func (m *ExportTraceServiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExportTraceServiceResponse) ProtoMessage()
func (m *ExportTraceServiceResponse) Reset()
func (m *ExportTraceServiceResponse) Size() (n int)
func (m *ExportTraceServiceResponse) String() string
func (m *ExportTraceServiceResponse) Unmarshal(dAtA []byte) error
func (m *ExportTraceServiceResponse) XXX_DiscardUnknown()
func (m *ExportTraceServiceResponse) XXX_Merge(src proto.Message)
func (m *ExportTraceServiceResponse) XXX_Size() int
func (m *ExportTraceServiceResponse) XXX_Unmarshal(b []byte) error
type RateLimitingSampler struct { // Rate per second. Qps int64 `protobuf:"varint,1,opt,name=qps,proto3" json:"qps,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Sampler that tries to sample with a rate per time window.
func (*RateLimitingSampler) Descriptor() ([]byte, []int)
func (m *RateLimitingSampler) GetQps() int64
func (m *RateLimitingSampler) Marshal() (dAtA []byte, err error)
func (m *RateLimitingSampler) MarshalTo(dAtA []byte) (int, error)
func (m *RateLimitingSampler) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RateLimitingSampler) ProtoMessage()
func (m *RateLimitingSampler) Reset()
func (m *RateLimitingSampler) Size() (n int)
func (m *RateLimitingSampler) String() string
func (m *RateLimitingSampler) Unmarshal(dAtA []byte) error
func (m *RateLimitingSampler) XXX_DiscardUnknown()
func (m *RateLimitingSampler) XXX_Merge(src proto.Message)
func (m *RateLimitingSampler) XXX_Size() int
func (m *RateLimitingSampler) XXX_Unmarshal(b []byte) error
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_TraceIdRatioBased // *TraceConfig_RateLimitingSampler Sampler isTraceConfig_Sampler `protobuf_oneof:"sampler"` // The global default max number of attributes per span. MaxNumberOfAttributes int64 `protobuf:"varint,4,opt,name=max_number_of_attributes,json=maxNumberOfAttributes,proto3" json:"max_number_of_attributes,omitempty"` // The global default max number of annotation events per span. MaxNumberOfTimedEvents int64 `protobuf:"varint,5,opt,name=max_number_of_timed_events,json=maxNumberOfTimedEvents,proto3" json:"max_number_of_timed_events,omitempty"` // The global default max number of attributes per timed event. MaxNumberOfAttributesPerTimedEvent int64 `protobuf:"varint,6,opt,name=max_number_of_attributes_per_timed_event,json=maxNumberOfAttributesPerTimedEvent,proto3" json:"max_number_of_attributes_per_timed_event,omitempty"` // 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 `protobuf:"varint,8,opt,name=max_number_of_attributes_per_link,json=maxNumberOfAttributesPerLink,proto3" json:"max_number_of_attributes_per_link,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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() ([]byte, []int)
func (m *TraceConfig) GetConstantSampler() *ConstantSampler
func (m *TraceConfig) GetMaxNumberOfAttributes() int64
func (m *TraceConfig) GetMaxNumberOfAttributesPerLink() int64
func (m *TraceConfig) GetMaxNumberOfAttributesPerTimedEvent() int64
func (m *TraceConfig) GetMaxNumberOfLinks() int64
func (m *TraceConfig) GetMaxNumberOfTimedEvents() int64
func (m *TraceConfig) GetRateLimitingSampler() *RateLimitingSampler
func (m *TraceConfig) GetSampler() isTraceConfig_Sampler
func (m *TraceConfig) GetTraceIdRatioBased() *TraceIdRatioBased
func (m *TraceConfig) Marshal() (dAtA []byte, err error)
func (m *TraceConfig) MarshalTo(dAtA []byte) (int, error)
func (m *TraceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TraceConfig) ProtoMessage()
func (m *TraceConfig) Reset()
func (m *TraceConfig) Size() (n int)
func (m *TraceConfig) String() string
func (m *TraceConfig) Unmarshal(dAtA []byte) error
func (m *TraceConfig) XXX_DiscardUnknown()
func (m *TraceConfig) XXX_Merge(src proto.Message)
func (*TraceConfig) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (m *TraceConfig) XXX_Size() int
func (m *TraceConfig) XXX_Unmarshal(b []byte) error
type TraceConfig_ConstantSampler struct { ConstantSampler *ConstantSampler `protobuf:"bytes,1,opt,name=constant_sampler,json=constantSampler,proto3,oneof" json:"constant_sampler,omitempty"` }
func (m *TraceConfig_ConstantSampler) MarshalTo(dAtA []byte) (int, error)
func (m *TraceConfig_ConstantSampler) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (m *TraceConfig_ConstantSampler) Size() (n int)
type TraceConfig_RateLimitingSampler struct { RateLimitingSampler *RateLimitingSampler `protobuf:"bytes,3,opt,name=rate_limiting_sampler,json=rateLimitingSampler,proto3,oneof" json:"rate_limiting_sampler,omitempty"` }
func (m *TraceConfig_RateLimitingSampler) MarshalTo(dAtA []byte) (int, error)
func (m *TraceConfig_RateLimitingSampler) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (m *TraceConfig_RateLimitingSampler) Size() (n int)
type TraceConfig_TraceIdRatioBased struct { TraceIdRatioBased *TraceIdRatioBased `protobuf:"bytes,2,opt,name=trace_id_ratio_based,json=traceIdRatioBased,proto3,oneof" json:"trace_id_ratio_based,omitempty"` }
func (m *TraceConfig_TraceIdRatioBased) MarshalTo(dAtA []byte) (int, error)
func (m *TraceConfig_TraceIdRatioBased) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (m *TraceConfig_TraceIdRatioBased) Size() (n int)
type TraceIdRatioBased struct { // The desired ratio of sampling. Must be within [0.0, 1.0]. SamplingRatio float64 `protobuf:"fixed64,1,opt,name=samplingRatio,proto3" json:"samplingRatio,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Sampler that tries to uniformly sample traces with a given ratio. The ratio of sampling a trace is equal to that of the specified ratio.
func (*TraceIdRatioBased) Descriptor() ([]byte, []int)
func (m *TraceIdRatioBased) GetSamplingRatio() float64
func (m *TraceIdRatioBased) Marshal() (dAtA []byte, err error)
func (m *TraceIdRatioBased) MarshalTo(dAtA []byte) (int, error)
func (m *TraceIdRatioBased) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TraceIdRatioBased) ProtoMessage()
func (m *TraceIdRatioBased) Reset()
func (m *TraceIdRatioBased) Size() (n int)
func (m *TraceIdRatioBased) String() string
func (m *TraceIdRatioBased) Unmarshal(dAtA []byte) error
func (m *TraceIdRatioBased) XXX_DiscardUnknown()
func (m *TraceIdRatioBased) XXX_Merge(src proto.Message)
func (m *TraceIdRatioBased) XXX_Size() int
func (m *TraceIdRatioBased) XXX_Unmarshal(b []byte) error
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(cc *grpc.ClientConn) TraceServiceClient
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 struct { }
UnimplementedTraceServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTraceServiceServer) Export(ctx context.Context, req *ExportTraceServiceRequest) (*ExportTraceServiceResponse, error)
Package v1 imports 11 packages (graph) and is imported by 4 packages. Updated 2020-11-24. Refresh now. Tools for package owners.