diff --git a/Rollbar/Config/RollbarPayloadAdditionOptions.cs b/Rollbar/Config/RollbarPayloadAdditionOptions.cs index 4f099d22..3652ffe2 100644 --- a/Rollbar/Config/RollbarPayloadAdditionOptions.cs +++ b/Rollbar/Config/RollbarPayloadAdditionOptions.cs @@ -50,6 +50,18 @@ public Server? Server set; } + /// + /// Gets or sets the code version. + /// + /// + /// The code version. + /// + public string? CodeVersion + { + get; + set; + } + /// /// Reconfigures this object similar to the specified one. /// diff --git a/Rollbar/DTOs/Data.cs b/Rollbar/DTOs/Data.cs index 4112d824..2e07843d 100644 --- a/Rollbar/DTOs/Data.cs +++ b/Rollbar/DTOs/Data.cs @@ -129,6 +129,7 @@ public Data( this.Level = config.RollbarDeveloperOptions.LogLevel; this.Person = config.RollbarPayloadAdditionOptions.Person; this.Server = config.RollbarPayloadAdditionOptions.Server; + this.CodeVersion = config.RollbarPayloadAdditionOptions.CodeVersion; } // set explicit values: diff --git a/Rollbar/IRollbarPayloadAdditionOptions.cs b/Rollbar/IRollbarPayloadAdditionOptions.cs index 9c5c55e0..06bb96f7 100644 --- a/Rollbar/IRollbarPayloadAdditionOptions.cs +++ b/Rollbar/IRollbarPayloadAdditionOptions.cs @@ -34,5 +34,17 @@ public interface IRollbarPayloadAdditionOptions get; set; } + + /// + /// Gets or sets the code version. + /// + /// + /// The code version. + /// + public string? CodeVersion + { + get; + set; + } } } diff --git a/SdkCommon.csproj b/SdkCommon.csproj index 7ef05ef9..cba35ac1 100644 --- a/SdkCommon.csproj +++ b/SdkCommon.csproj @@ -24,13 +24,12 @@ - 5.1.3 + 5.2.0 false - fix: resolve #626 - Telemetry in DotNet Core 3.1 is not initialized - feat: resolve #627 - Capture RollbarInfrastructureConfig with each payload + feat: resolve #630 - No option to set code_version at the config level in v5 of the SDK