Back to godoc.org

Package v1

v0.4.0
Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module: go.opentelemetry.io/collector

Overview

Package v1 is a generated protocol buffer package.

It is generated from these files:
	opentelemetry/proto/trace/v1/trace_config.proto

It has these top-level messages:
	TraceConfig
	ConstantSampler
	ProbabilitySampler
	RateLimitingSampler

Package v1 is a generated protocol buffer package.

It is generated from these files:
	opentelemetry/proto/collector/trace/v1/trace_service.proto

It has these top-level messages:
	ExportTraceServiceRequest
	ExportTraceServiceResponse

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Package Files

Variables

var (
	ErrInvalidLengthTraceConfig = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTraceConfig   = fmt.Errorf("proto: integer overflow")
)
var (
	ErrInvalidLengthTraceService = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTraceService   = fmt.Errorf("proto: integer overflow")
)
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 RegisterTraceServiceHandler

func RegisterTraceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTraceServiceHandler registers the http handlers for service TraceService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTraceServiceHandlerClient

func RegisterTraceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TraceServiceClient) error

RegisterTraceServiceHandlerClient registers the http handlers for service TraceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TraceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TraceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TraceServiceClient" to call the correct interceptors.

func RegisterTraceServiceHandlerFromEndpoint

func RegisterTraceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTraceServiceHandlerFromEndpoint is same as RegisterTraceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTraceServiceHandlerServer

func RegisterTraceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TraceServiceServer) error

RegisterTraceServiceHandlerServer registers the http handlers for service TraceService to "mux". UnaryRPC :call TraceServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterTraceServiceServer

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

type ConstantSampler

type ConstantSampler struct {
	Decision ConstantSampler_ConstantDecision "" /* 137 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 (m *ConstantSampler) GetDecision() ConstantSampler_ConstantDecision

func (*ConstantSampler) Marshal

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

func (*ConstantSampler) MarshalTo

func (m *ConstantSampler) MarshalTo(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

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

func (x ConstantSampler_ConstantDecision) String() string

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 []*opentelemetry_proto_trace_v1.ResourceSpans `protobuf:"bytes,1,rep,name=resource_spans,json=resourceSpans" json:"resource_spans,omitempty"`
}

func (*ExportTraceServiceRequest) Descriptor

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

func (*ExportTraceServiceRequest) GetResourceSpans

func (m *ExportTraceServiceRequest) GetResourceSpans() []*opentelemetry_proto_trace_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) 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

type ExportTraceServiceResponse

type ExportTraceServiceResponse struct {
}

func (*ExportTraceServiceResponse) Descriptor

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

func (*ExportTraceServiceResponse) Marshal

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

func (*ExportTraceServiceResponse) MarshalTo

func (m *ExportTraceServiceResponse) MarshalTo(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

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) 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

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) 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

type TraceConfig

type TraceConfig struct {
	Sampler isTraceConfig_Sampler `protobuf_oneof:"sampler"`

	MaxNumberOfAttributes int64 "" /* 129 byte string literal not displayed */

	MaxNumberOfTimedEvents int64 "" /* 134 byte string literal not displayed */

	MaxNumberOfAttributesPerTimedEvent int64 "" /* 174 byte string literal not displayed */

	MaxNumberOfLinks int64 `protobuf:"varint,7,opt,name=max_number_of_links,json=maxNumberOfLinks,proto3" json:"max_number_of_links,omitempty"`

	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) 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_OneofFuncs

func (*TraceConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type TraceConfig_ConstantSampler

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

func (*TraceConfig_ConstantSampler) MarshalTo

func (m *TraceConfig_ConstantSampler) MarshalTo(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,oneof"`
}

func (*TraceConfig_ProbabilitySampler) MarshalTo

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

func (*TraceConfig_ProbabilitySampler) Size

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

type TraceConfig_RateLimitingSampler

type TraceConfig_RateLimitingSampler struct {
	RateLimitingSampler *RateLimitingSampler `protobuf:"bytes,3,opt,name=rate_limiting_sampler,json=rateLimitingSampler,oneof"`
}

func (*TraceConfig_RateLimitingSampler) MarshalTo

func (m *TraceConfig_RateLimitingSampler) MarshalTo(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)
}

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)
}
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier