Expand description
§OpenTelemetry Log SDK
Re-exports§
pub use in_memory_exporter::InMemoryLogExporter;pub use in_memory_exporter::InMemoryLogExporterBuilder;
Modules§
- in_
memory_ exporter  - In-Memory log exporter for testing purpose.
 
Structs§
- Batch
Config  - Batch log processor configuration.
Use 
BatchConfigBuilderto configure your own instance ofBatchConfig. - Batch
Config Builder  - A builder for creating 
BatchConfiginstances. - Batch
LogProcessor  - The 
BatchLogProcessorcollects finished logs in a buffer and exports them in batches to the configuredLogExporter. This processor is ideal for high-throughput environments, as it minimizes the overhead of exporting logs individually. It uses a dedicated background thread to manage and export logs asynchronously, ensuring that the application’s main execution flow is not blocked. - Batch
LogProcessor Builder  - A builder for creating 
BatchLogProcessorinstances. - LogBatch
 - A batch of log records to be exported by a 
LogExporter. - Logger
Provider Builder  - Builder for provider attributes.
 - SdkLog
Record  - LogRecord represents all data carried by a log record, and
is provided to 
LogExporters as input. - SdkLogger
 - The object for emitting 
LogRecords. - SdkLogger
Provider  - Handles the creation and coordination of 
Loggers. - Simple
LogProcessor  - A 
LogProcessordesigned for testing and debugging purpose, that immediately exports log records as they are emitted. Log records are exported synchronously in the same thread that emits the log record. When using this processor with the OTLP Exporter, the following exporter features are supported: - Trace
Context  - TraceContext stores the trace context for logs that have an associated span.
 
Traits§
- LogExporter
 LogExporterdefines the interface that log exporters should implement.- LogProcessor
 - The interface for plugging into a 
SdkLogger.