Copyright | (c) Ian Duncan 2021 |
---|---|
License | BSD-3 |
Maintainer | Ian Duncan |
Stability | experimental |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
This is an implementation of the Span Processor which create batches of finished spans and passes the export-friendly span data representations to the configured Exporter.
Synopsis
Documentation
data BatchTimeoutConfig Source #
Configurable options for batch exporting frequence and size
BatchTimeoutConfig | |
|
Instances
Show BatchTimeoutConfig Source # | |
Defined in OpenTelemetry.Processor.Batch showsPrec :: Int -> BatchTimeoutConfig -> ShowS # show :: BatchTimeoutConfig -> String # showList :: [BatchTimeoutConfig] -> ShowS # |
batchTimeoutConfig :: BatchTimeoutConfig Source #
Default configuration values
batchProcessor :: MonadIO m => BatchTimeoutConfig -> Exporter ImmutableSpan -> m Processor Source #
The batch processor accepts spans and places them into batches. Batching helps better compress the data and reduce the number of outgoing connections required to transmit the data. This processor supports both size and time based batching.