feat(auditlog): per-script-execution correlation id on sync audit rows
This commit is contained in:
@@ -36,6 +36,7 @@ internal sealed class AuditingDbConnection : DbConnection
|
||||
private readonly string _siteId;
|
||||
private readonly string _instanceName;
|
||||
private readonly string? _sourceScript;
|
||||
private readonly Guid _correlationId;
|
||||
private readonly ILogger _logger;
|
||||
|
||||
public AuditingDbConnection(
|
||||
@@ -45,6 +46,7 @@ internal sealed class AuditingDbConnection : DbConnection
|
||||
string siteId,
|
||||
string instanceName,
|
||||
string? sourceScript,
|
||||
Guid correlationId,
|
||||
ILogger logger)
|
||||
{
|
||||
_inner = inner ?? throw new ArgumentNullException(nameof(inner));
|
||||
@@ -53,6 +55,7 @@ internal sealed class AuditingDbConnection : DbConnection
|
||||
_siteId = siteId ?? string.Empty;
|
||||
_instanceName = instanceName ?? string.Empty;
|
||||
_sourceScript = sourceScript;
|
||||
_correlationId = correlationId;
|
||||
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
|
||||
}
|
||||
|
||||
@@ -92,6 +95,7 @@ internal sealed class AuditingDbConnection : DbConnection
|
||||
_siteId,
|
||||
_instanceName,
|
||||
_sourceScript,
|
||||
_correlationId,
|
||||
_logger);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user