Documentation
¶
Overview ¶
Package jaeger contains an OpenCensus tracing exporter for AWS Kinesis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter takes spans in jaeger proto format and forwards them to a kinesis stream
func NewExporter ¶
NewExporter returns a trace.Exporter implementation that exports the collected spans to Jaeger.
func (*Exporter) ExportSpan ¶
ExportSpan exports a Jaeger protbuf span to Kinesis
type HookProducer ¶
type HookProducer func(name, streamName, shardID string) KinesisHooker
HookProducer should be a factory for generating KinesisHooker's so you can do your metricization in your own way
type KinesisHooker ¶
type KinesisHooker interface {
OnDrain(bytes, length int64)
OnPutRecords(batches, spanlists, bytes, putLatencyMS int64, reason string)
OnPutErr(errCode string)
OnDropped(batches, spanlists, bytes int64)
OnSpanEnqueued()
OnSpanDequeued()
OnXLSpanDropped(size int)
OnPutSpanListFlushed(spans, bytes int64)
OnCompressed(original, compressed int64)
}
KinesisHooker interface abstracts away the hook so one can pass in a producer and inject your own implementation
type Options ¶
type Options struct {
Name string
StreamName string
AWSRegion string
AWSRole string
AWSKinesisEndpoint string
QueueSize int
NumWorkers int
MaxListSize int
ListFlushInterval int
KPLAggregateBatchCount int
KPLAggregateBatchSize int
KPLBatchSize int
KPLBatchCount int
KPLBacklogCount int
KPLFlushIntervalSeconds int
KPLMaxConnections int
KPLMaxRetries int
KPLMaxBackoffSeconds int
MaxAllowedSizePerSpan int
// to be called if data is put on an unexpected shard
OnReshard func()
// if you want to inject your own hooks into the exporter, else th default hooks will be created
HookProducer HookProducer
// Encoding defines the format in which spans should be exporter to kinesis
// only Jaeger is supported right now
Encoding string
}
Options are the options to be used when initializing a Jaeger exporter.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.