Skip to content

Commit

Permalink
Merge pull request #631 from WideSpectrumComputing/refGH630
Browse files Browse the repository at this point in the history
feat: resolve #630
  • Loading branch information
akornich authored May 17, 2022
2 parents d47ded8 + ea10b24 commit e9c26fe
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
12 changes: 12 additions & 0 deletions Rollbar/Config/RollbarPayloadAdditionOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ public Server? Server
set;
}

/// <summary>
/// Gets or sets the code version.
/// </summary>
/// <value>
/// The code version.
/// </value>
public string? CodeVersion
{
get;
set;
}

/// <summary>
/// Reconfigures this object similar to the specified one.
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions Rollbar/DTOs/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 12 additions & 0 deletions Rollbar/IRollbarPayloadAdditionOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,17 @@ public interface IRollbarPayloadAdditionOptions
get;
set;
}

/// <summary>
/// Gets or sets the code version.
/// </summary>
/// <value>
/// The code version.
/// </value>
public string? CodeVersion
{
get;
set;
}
}
}
5 changes: 2 additions & 3 deletions SdkCommon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@
</ItemGroup>

<PropertyGroup Label="SDK Release Essential Info">
<SdkVersion>5.1.3</SdkVersion> <!-- Required: major.minor.patch -->
<SdkVersion>5.2.0</SdkVersion> <!-- Required: major.minor.patch -->
<SdkVersionSuffix></SdkVersionSuffix> <!-- Optional. Examples: alpha, beta, preview, RC etc. -->
<SdkLtsRelease>false</SdkLtsRelease> <!-- Optional. Examples: false (default) or true. -->
<SdkReleaseNotes> <!-- Required -->

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

</SdkReleaseNotes>

Expand Down

0 comments on commit e9c26fe

Please sign in to comment.