One possible solution to support Open Telemetry's filelogreceiver would be to have a mode more like go-cronowriter by writing directly to the current "backup file" and having Filename be a symlink to it. If this were done, then Open Telemetry could watch the backup files by a glob and would neither lose any lines written to the file which were not consumed before rotation, nor double-count lines if including the Filename in the glob.
One possible solution to support Open Telemetry's filelogreceiver would be to have a mode more like go-cronowriter by writing directly to the current "backup file" and having Filename be a symlink to it. If this were done, then Open Telemetry could watch the backup files by a glob and would neither lose any lines written to the file which were not consumed before rotation, nor double-count lines if including the Filename in the glob.