Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
data LogRecordProcessor Source #
LogRecordProcessor is an interface which allows hooks for LogRecord emitting.
Built-in processors are responsible for batching and conversion of LogRecords to exportable representation and passing batches to exporters.
LogRecordProcessors can be registered directly on SDK LoggerProvider and they are invoked in the same order as they were registered.
Each processor registered on LoggerProvider is part of a pipeline that consists of a processor and optional exporter. The SDK MUST allow each pipeline to end with an individual exporter.
The SDK MUST allow users to implement and configure custom processors and decorate built-in processors for advanced scenarios such as enriching with attributes.
The following diagram shows LogRecordProcessor’s relationship to other components in the SDK:
+-----+------------------------+ +------------------------------+ +-------------------------+ | | | | | | | | | | | Batching LogRecordProcessor | | LogRecordExporter | | | +---> Simple LogRecordProcessor +---> (OtlpExporter) | | | | | | | | | SDK | Logger.emit(LogRecord) | +------------------------------+ +-------------------------+ | | | | | | | | | | | | | | | +-----+------------------------+
LogRecordProcessor | |
|