Documentation ¶
Index ¶
- Constants
- Variables
- func ByteArrayToInt64(buf [8]byte) int64
- func Int64ToByteArray(x int64) [8]byte
- func NewWriter(conn pgxconn.PgxConn) *traceWriterImpl
- func RegisterTelemetryMetrics(t telemetry.Engine) error
- func TraceIDToUUID(buf [16]byte) pgtype.UUID
- type Batch
- type Batcher
- type BatcherConfig
- type Dispatcher
- type TagType
- type Writer
Constants ¶
View Source
const ( DefaultBatchSize = 1000 // this is soft limit as we might produce bigger batches in some cases DefaultBatchTimeout = 100 * time.Millisecond // we should aways aim at reaching size limits, not timeout )
Variables ¶
View Source
var (
DefaultBatchWorkers = runtime.GOMAXPROCS(0) // package go.uber.org/automaxprocs updates this value on start
)
Functions ¶
func ByteArrayToInt64 ¶
func Int64ToByteArray ¶
func TraceIDToUUID ¶
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
Batch individual insertTracesReq.
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
Batcher batches trace requests and sends batches to batch writer. This is done to achieve better ingest performance especially b/c Jaeger collector sends traces one by one.
func NewBatcher ¶
func NewBatcher(config BatcherConfig, writer Writer) *Batcher
type BatcherConfig ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
Dispatcher manages trace batcher and ingestion Dispatches user request which are combined into batches later on
func NewDispatcher ¶
func NewDispatcher(writer Writer, async bool, batchConfig BatcherConfig) *Dispatcher
func (*Dispatcher) Close ¶
func (td *Dispatcher) Close()
func (*Dispatcher) InsertTraces ¶
Click to show internal directories.
Click to hide internal directories.