-
public interface IOtelOpenTelemetryPlatform-agnostic OpenTelemetry interface.
-
-
Method Summary
Modifier and Type Method Description abstract LogRecordBuildergetLogger()Gets a LogRecordBuilder for creating log records. abstract CompletableResultCodeforceFlush()Forces a flush of all pending log records. abstract Unitshutdown()Shuts down the underlying OpenTelemetry SDK, flushing pending data and releasing resources (exporters, logger providers, etc.). -
-
Method Detail
-
getLogger
abstract LogRecordBuilder getLogger()
Gets a LogRecordBuilder for creating log records. This is a suspend function as it may need to initialize the SDK on first call.
-
forceFlush
abstract CompletableResultCode forceFlush()
Forces a flush of all pending log records. This ensures all buffered logs are exported immediately.
-
-
-
-