OpenTelemetry.Internal.SelfDiagnosticsConfigRefresher
SelfDiagnosticsConfigRefresher class checks a location for a configuration file
and open a MemoryMappedFile of a configured size at the configured file path.
The class provides a stream object with proper write position if the configuration
file is present and valid. Otherwise, the stream object would be unavailable,
nothing will be logged to any file.
namespace OpenTelemetry.Internal
{
internal class SelfDiagnosticsConfigRefresher : IDisposable
{
public static readonly byte[] MessageOnNewFile;
public SelfDiagnosticsConfigRefresher();
public void Dispose();
public virtual bool TryGetLogStream(int byteCount, out Stream stream, out int availableByteCount);
}
}