The Log Processor is responsible for passing log records to the configured exporter.
Definition at line 22 of file includes/opentelemetry/sdk/logs/processor.h.

Public Member Functions | |
| virtual | ~LogRecordProcessor ()=default |
| virtual std::unique_ptr< Recordable > | MakeRecordable () noexcept=0 |
| Create a log recordable. More... | |
| virtual void | OnEmit (std::unique_ptr< Recordable > &&record) noexcept=0 |
| OnEmit is called by the SDK once a log record has been successfully created. More... | |
| virtual bool | ForceFlush (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept=0 |
| Exports all log records that have not yet been exported to the configured Exporter. More... | |
| virtual bool | Shutdown (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept=0 |
| Shuts down the processor and does any cleanup required. More... | |
| virtual | ~LogRecordProcessor ()=default |
| virtual std::unique_ptr< Recordable > | MakeRecordable () noexcept=0 |
| Create a log recordable. More... | |
| virtual void | OnEmit (std::unique_ptr< Recordable > &&record) noexcept=0 |
| OnEmit is called by the SDK once a log record has been successfully created. More... | |
| virtual bool | ForceFlush (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept=0 |
| Exports all log records that have not yet been exported to the configured Exporter. More... | |
| virtual bool | Shutdown (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept=0 |
| Shuts down the processor and does any cleanup required. More... | |
|
virtualdefault |
|
virtualdefault |
|
pure virtualnoexcept |
Exports all log records that have not yet been exported to the configured Exporter.
| timeout | that the forceflush is required to finish within. |
Implemented in sdk::logs::BatchLogRecordProcessor, sdk::logs::BatchLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::SimpleLogRecordProcessor, and sdk::logs::SimpleLogRecordProcessor.
|
pure virtualnoexcept |
Exports all log records that have not yet been exported to the configured Exporter.
| timeout | that the forceflush is required to finish within. |
Implemented in sdk::logs::BatchLogRecordProcessor, sdk::logs::BatchLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::SimpleLogRecordProcessor, and sdk::logs::SimpleLogRecordProcessor.
|
pure virtualnoexcept |
Create a log recordable.
This requests a new log recordable from the associated exporter.
Note: This method must be callable from multiple threads.
Implemented in sdk::logs::BatchLogRecordProcessor, sdk::logs::BatchLogRecordProcessor, sdk::logs::SimpleLogRecordProcessor, sdk::logs::SimpleLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, and sdk::logs::MultiLogRecordProcessor.
|
pure virtualnoexcept |
Create a log recordable.
This requests a new log recordable from the associated exporter.
Note: This method must be callable from multiple threads.
Implemented in sdk::logs::BatchLogRecordProcessor, sdk::logs::BatchLogRecordProcessor, sdk::logs::SimpleLogRecordProcessor, sdk::logs::SimpleLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, and sdk::logs::MultiLogRecordProcessor.
|
pure virtualnoexcept |
OnEmit is called by the SDK once a log record has been successfully created.
| record | the log recordable object |
Implemented in sdk::logs::BatchLogRecordProcessor, sdk::logs::BatchLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::SimpleLogRecordProcessor, and sdk::logs::SimpleLogRecordProcessor.
|
pure virtualnoexcept |
OnEmit is called by the SDK once a log record has been successfully created.
| record | the log recordable object |
Implemented in sdk::logs::BatchLogRecordProcessor, sdk::logs::BatchLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::SimpleLogRecordProcessor, and sdk::logs::SimpleLogRecordProcessor.
|
pure virtualnoexcept |
Shuts down the processor and does any cleanup required.
ShutDown should only be called once for each processor.
| timeout | minimum amount of microseconds to wait for shutdown before giving up and returning failure. |
Implemented in sdk::logs::BatchLogRecordProcessor, sdk::logs::BatchLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::SimpleLogRecordProcessor, and sdk::logs::SimpleLogRecordProcessor.
|
pure virtualnoexcept |
Shuts down the processor and does any cleanup required.
ShutDown should only be called once for each processor.
| timeout | minimum amount of microseconds to wait for shutdown before giving up and returning failure. |
Implemented in sdk::logs::BatchLogRecordProcessor, sdk::logs::BatchLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::MultiLogRecordProcessor, sdk::logs::SimpleLogRecordProcessor, and sdk::logs::SimpleLogRecordProcessor.