Closed BrettJaner closed 9 months ago
Hi @BrettJaner!
Thank you for the contribution. It is very welcome.
Can you please update the documentation in README.md to relfect your changes?
Can you please update the documentation in README.md to relfect your changes?
Hi @ckadluba, I've updated the README.md.
After reviewing my code for possible breaking changes, I realized I missed the configuration implementation (eg. ability to specify UseSqlBulkCopy
in appsettings.json). I've since updated the PR (4a725ea). Please let me know if anything looks off.
@BrettJaner Can you please add also one integration test using the new SqlInsertBatchWriter
? You'll find examples in the Misc directory, for instance this one: https://github.com/serilog-mssql/serilog-sinks-mssqlserver/blob/dev/test/Serilog.Sinks.MSSqlServer.Tests/Misc/OpenTelemetryColumnsTests.cs.
@BrettJaner Can you please add also one integration test using the new
SqlInsertBatchWriter
?
I've added integration tests to switch between the two batch writers (00cc7e9).
Addresses issue (#509)
Summary of changes:
UseSqlBulkCopy
toMSSqlServerSinkOptions
defaulting totrue
UseSqlBulkCopy
from appsettings.jsonSqlInsertStatementWriter
which uses INSERT statements (highly based off of theSqlLogEventWriter
used by theMSSqlServerAuditSink
)ISqlBulkBatchWriter
andISqlLogEventWriter
SqlLogEventWriter
as it is now redundantSqlInsertStatementWriterTests