-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #501 from serilog-mssql/dev
Release 6.5.0
- Loading branch information
Showing
26 changed files
with
622 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Contributing | ||
|
||
Please refer to the [Serilog Contributing Guidelines](https://github.com/serilog/serilog/blob/dev/CONTRIBUTING.md) which also apply to the MSSqlServer Sink. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...qlServer/Configuration/Implementations/System.Configuration/StandardColumnConfigSpanId.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Configuration; | ||
|
||
// Disable XML comment warnings for internal config classes which are required to have public members | ||
#pragma warning disable 1591 | ||
|
||
namespace Serilog.Sinks.MSSqlServer | ||
{ | ||
public class StandardColumnConfigSpanId : ColumnConfig | ||
{ | ||
public StandardColumnConfigSpanId() : base() | ||
{ } | ||
|
||
// override to set IsRequired = false | ||
[ConfigurationProperty("ColumnName", IsRequired = false, IsKey = true)] | ||
public override string ColumnName | ||
{ | ||
get => base.ColumnName; | ||
set => base.ColumnName = value; | ||
} | ||
} | ||
} | ||
|
||
#pragma warning restore 1591 | ||
|
24 changes: 24 additions & 0 deletions
24
...lServer/Configuration/Implementations/System.Configuration/StandardColumnConfigTraceId.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Configuration; | ||
|
||
// Disable XML comment warnings for internal config classes which are required to have public members | ||
#pragma warning disable 1591 | ||
|
||
namespace Serilog.Sinks.MSSqlServer | ||
{ | ||
public class StandardColumnConfigTraceId : ColumnConfig | ||
{ | ||
public StandardColumnConfigTraceId() : base() | ||
{ } | ||
|
||
// override to set IsRequired = false | ||
[ConfigurationProperty("ColumnName", IsRequired = false, IsKey = true)] | ||
public override string ColumnName | ||
{ | ||
get => base.ColumnName; | ||
set => base.ColumnName = value; | ||
} | ||
} | ||
} | ||
|
||
#pragma warning restore 1591 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/Serilog.Sinks.MSSqlServer/Sinks/MSSqlServer/ColumnOptions/SpanIdColumnOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Data; | ||
|
||
namespace Serilog.Sinks.MSSqlServer | ||
{ | ||
public partial class ColumnOptions // Standard Column options are inner classes for backwards-compatibility. | ||
{ | ||
/// <summary> | ||
/// Options for the SpanId column. | ||
/// </summary> | ||
public class SpanIdColumnOptions : SqlColumn | ||
{ | ||
/// <summary> | ||
/// Constructor. | ||
/// </summary> | ||
public SpanIdColumnOptions() : base() | ||
{ | ||
StandardColumnIdentifier = StandardColumn.SpanId; | ||
DataType = SqlDbType.NVarChar; | ||
} | ||
|
||
/// <summary> | ||
/// The SpanId column defaults to NVarChar and must be of a character-storage data type. | ||
/// </summary> | ||
public new SqlDbType DataType | ||
{ | ||
get => base.DataType; | ||
set | ||
{ | ||
if (!SqlDataTypes.VariableCharacterColumnTypes.Contains(value)) | ||
throw new ArgumentException("The Standard Column \"SpanId\" must be NVarChar or VarChar."); | ||
base.DataType = value; | ||
} | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/Serilog.Sinks.MSSqlServer/Sinks/MSSqlServer/ColumnOptions/TraceIdColumnOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Data; | ||
|
||
namespace Serilog.Sinks.MSSqlServer | ||
{ | ||
public partial class ColumnOptions // Standard Column options are inner classes for backwards-compatibility. | ||
{ | ||
/// <summary> | ||
/// Options for the TraceId column. | ||
/// </summary> | ||
public class TraceIdColumnOptions : SqlColumn | ||
{ | ||
/// <summary> | ||
/// Constructor. | ||
/// </summary> | ||
public TraceIdColumnOptions() : base() | ||
{ | ||
StandardColumnIdentifier = StandardColumn.TraceId; | ||
DataType = SqlDbType.NVarChar; | ||
} | ||
|
||
/// <summary> | ||
/// The TraceId column defaults to NVarChar and must be of a character-storage data type. | ||
/// </summary> | ||
public new SqlDbType DataType | ||
{ | ||
get => base.DataType; | ||
set | ||
{ | ||
if (!SqlDataTypes.VariableCharacterColumnTypes.Contains(value)) | ||
throw new ArgumentException("The Standard Column \"TraceId\" must be NVarChar or VarChar."); | ||
base.DataType = value; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.