opentelemetry_sdk

Module logs

Source
Expand description

§OpenTelemetry Log SDK

Modules§

Structs§

  • Batch log processor configuration. Use BatchConfigBuilder to configure your own instance of BatchConfig.
  • A builder for creating BatchConfig instances.
  • The BatchLogProcessor collects finished logs in a buffer and exports them in batches to the configured LogExporter. 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.
  • A builder for creating BatchLogProcessor instances.
  • A batch of log records to be exported by a LogExporter.
  • Builder for provider attributes.
  • LogRecord represents all data carried by a log record, and is provided to LogExporters as input.
  • The object for emitting LogRecords.
  • Handles the creation and coordination of Loggers.
  • A LogProcessor designed 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:
  • TraceContext stores the trace context for logs that have an associated span.

Enums§

Traits§

Type Aliases§

  • Describe the result of operations in log SDK.