Log processor allow hooks for receive method invocations.
Built-in log processors are responsible for batching and conversion of logs to exportable representation and passing batches to exporters.
Definition at line 25 of file includes/opentelemetry/sdk/logs/multi_log_record_processor.h.
◆ MultiLogRecordProcessor() [1/2]
| sdk::logs::MultiLogRecordProcessor::MultiLogRecordProcessor |
( |
std::vector< std::unique_ptr< LogRecordProcessor >> && |
processors | ) |
|
◆ ~MultiLogRecordProcessor() [1/2]
| sdk::logs::MultiLogRecordProcessor::~MultiLogRecordProcessor |
( |
| ) |
|
|
override |
◆ MultiLogRecordProcessor() [2/2]
| sdk::logs::MultiLogRecordProcessor::MultiLogRecordProcessor |
( |
std::vector< std::unique_ptr< LogRecordProcessor >> && |
processors | ) |
|
◆ ~MultiLogRecordProcessor() [2/2]
| sdk::logs::MultiLogRecordProcessor::~MultiLogRecordProcessor |
( |
| ) |
|
|
override |
◆ AddProcessor() [1/2]
| void sdk::logs::MultiLogRecordProcessor::AddProcessor |
( |
std::unique_ptr< LogRecordProcessor > && |
processor | ) |
|
◆ AddProcessor() [2/2]
| void sdk::logs::MultiLogRecordProcessor::AddProcessor |
( |
std::unique_ptr< LogRecordProcessor > && |
processor | ) |
|
◆ ForceFlush() [1/2]
Exports all log records that have not yet been exported to the configured Exporter.
- Parameters
-
| timeout | that the forceflush is required to finish within. |
- Returns
- a result code indicating whether it succeeded, failed or timed out
Implements sdk::logs::LogRecordProcessor.
◆ ForceFlush() [2/2]
Exports all log records that have not yet been exported to the configured Exporter.
- Parameters
-
| timeout | that the forceflush is required to finish within. |
- Returns
- a result code indicating whether it succeeded, failed or timed out
Implements sdk::logs::LogRecordProcessor.
◆ InternalForceFlush() [1/2]
Exports all log records that have not yet been exported to the configured Exporter.
- Parameters
-
| timeout | that the forceflush is required to finish within. |
- Returns
- a result code indicating whether it succeeded, failed or timed out
◆ InternalForceFlush() [2/2]
Exports all log records that have not yet been exported to the configured Exporter.
- Parameters
-
| timeout | that the forceflush is required to finish within. |
- Returns
- a result code indicating whether it succeeded, failed or timed out
◆ InternalShutdown() [1/2]
Shuts down the processor and does any cleanup required.
ShutDown should only be called once for each processor.
- Parameters
-
| timeout | minimum amount of microseconds to wait for shutdown before giving up and returning failure. |
- Returns
- true if the shutdown succeeded, false otherwise
◆ InternalShutdown() [2/2]
Shuts down the processor and does any cleanup required.
ShutDown should only be called once for each processor.
- Parameters
-
| timeout | minimum amount of microseconds to wait for shutdown before giving up and returning failure. |
- Returns
- true if the shutdown succeeded, false otherwise
◆ MakeRecordable() [1/2]
| std::unique_ptr<Recordable> sdk::logs::MultiLogRecordProcessor::MakeRecordable |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ MakeRecordable() [2/2]
| std::unique_ptr<Recordable> sdk::logs::MultiLogRecordProcessor::MakeRecordable |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ OnEmit() [1/2]
| void sdk::logs::MultiLogRecordProcessor::OnEmit |
( |
std::unique_ptr< Recordable > && |
record | ) |
|
|
overridevirtualnoexcept |
◆ OnEmit() [2/2]
| void sdk::logs::MultiLogRecordProcessor::OnEmit |
( |
std::unique_ptr< Recordable > && |
record | ) |
|
|
overridevirtualnoexcept |
◆ Shutdown() [1/2]
Shuts down the processor and does any cleanup required.
ShutDown should only be called once for each processor.
- Parameters
-
| timeout | minimum amount of microseconds to wait for shutdown before giving up and returning failure. |
- Returns
- true if the shutdown succeeded, false otherwise
Implements sdk::logs::LogRecordProcessor.
◆ Shutdown() [2/2]
Shuts down the processor and does any cleanup required.
ShutDown should only be called once for each processor.
- Parameters
-
| timeout | minimum amount of microseconds to wait for shutdown before giving up and returning failure. |
- Returns
- true if the shutdown succeeded, false otherwise
Implements sdk::logs::LogRecordProcessor.
The documentation for this class was generated from the following file: