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.
Gets the formatter this sink consumes, or null when the sink consumes
the raw SelfDiagnosticsLogEntry instead of formatted text (e.g. a sink
forwarding to an external ILogger pipeline with its own formatting).
void Flush()
Flushes buffered output.
Gets a value indicating whether the sink can currently accept entries at the given level.
void OnInstalled()
Called once after the sink has been installed and all outgoing sinks have been disposed.
void Write(SelfDiagnosticsLogEntry& modreq(System.Runtime.InteropServices.InAttribute) entry, string formatted)