Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CollectorOptions ¶ added in v0.6.0
type CollectorOptions struct { // QueueSize is the size of collector's queue QueueSize int // NumWorkers is the number of internal workers in a collector NumWorkers int // WriteCacheTTL denotes how often to check and re-write a service or operation name WriteCacheTTL time.Duration // CollectorPort is the port that the collector service listens in on for tchannel requests CollectorPort int // CollectorHTTPPort is the port that the collector service listens in on for http requests CollectorHTTPPort int // CollectorZipkinHTTPPort is the port that the Zipkin collector service listens in on for http requests CollectorZipkinHTTPPort int }
CollectorOptions holds configuration for collector
func (*CollectorOptions) InitFromViper ¶ added in v0.6.0
func (cOpts *CollectorOptions) InitFromViper(v *viper.Viper) *CollectorOptions
InitFromViper initializes CollectorOptions with properties from viper
type SpanHandlerBuilder ¶
type SpanHandlerBuilder struct {
// contains filtered or unexported fields
}
SpanHandlerBuilder holds configuration required for handlers
func NewSpanHandlerBuilder ¶
func NewSpanHandlerBuilder(cOpts *CollectorOptions, sFlags *flags.SharedFlags, opts ...basicB.Option) (*SpanHandlerBuilder, error)
NewSpanHandlerBuilder returns new SpanHandlerBuilder with configured span storage.
func (*SpanHandlerBuilder) BuildHandlers ¶
func (spanHb *SpanHandlerBuilder) BuildHandlers() (app.ZipkinSpansHandler, app.JaegerBatchesHandler)
BuildHandlers builds span handlers (Zipkin, Jaeger)
Click to show internal directories.
Click to hide internal directories.