<PackageReference Include="OpenTelemetry" Version="1.15.2" />

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.
public static readonly byte[] MessageOnNewFile

public void Dispose()

public virtual bool TryGetLogStream(int byteCount, out Stream stream, out int availableByteCount)

Try to get the log stream which is seeked to the position where the next line of log should be written.