OpenTelemetry.Internal.ISelfDiagnosticsSink
A destination for self-diagnostics entries. Sinks are simple synchronous writers; all
queueing, threading, level filtering, and format-once caching is owned by the
SelfDiagnosticsSinkDispatcher, which invokes sinks from a single pump thread.
namespace OpenTelemetry.Internal
{
internal interface ISelfDiagnosticsSink : IDisposable
{
ISelfDiagnosticsFormatter Formatter { get; }
void Flush();
bool IsEnabled(LogLevel level);
void OnInstalled();
void Write(SelfDiagnosticsLogEntry entry, string formatted);
}
}