Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/support-release'
Browse files Browse the repository at this point in the history
* origin/support-release:
  Support release attribute (fixes GH-76)
  • Loading branch information
asbjornu committed Sep 25, 2015
2 parents f7283b3 + 49a792d commit 60acc87
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/app/SharpRaven/Data/JsonPacket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

// Copyright (c) 2014 The Sentry Team and individual contributors.
// All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without modification, are permitted
// provided that the following conditions are met:
//
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
//
//
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of
// conditions and the following disclaimer in the documentation and/or other materials
// provided with the distribution.
//
//
// 3. Neither the name of the Sentry nor the names of its contributors may be used to
// endorse or promote products derived from this software without specific prior written
// permission.
//
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
Expand Down Expand Up @@ -141,6 +141,8 @@ private JsonPacket()
// Platform
Platform = "csharp";

Release = "";

// Get data from the HTTP request
Request = SentryRequest.GetRequest();

Expand Down Expand Up @@ -190,7 +192,7 @@ private JsonPacket()
/// <summary>
/// The name of the logger which created the record.
/// If missing, defaults to the string root.
///
///
/// Ex: "my.logger.name"
/// </summary>
[JsonProperty(PropertyName = "logger", NullValueHandling = NullValueHandling.Ignore)]
Expand Down Expand Up @@ -219,7 +221,7 @@ private JsonPacket()
public IDictionary<string, string> Modules { get; set; }

/// <summary>
/// A string representing the platform the client is submitting from.
/// A string representing the platform the client is submitting from.
/// This will be used by the Sentry interface to customize various components in the interface.
/// </summary>
[JsonProperty(PropertyName = "platform", NullValueHandling = NullValueHandling.Ignore)]
Expand All @@ -246,6 +248,12 @@ private JsonPacket()
[JsonProperty(PropertyName = "server_name", NullValueHandling = NullValueHandling.Ignore)]
public string ServerName { get; set; }

/// <summary>
/// Identifies the version of the application.
/// </summary>
[JsonProperty(PropertyName = "release", NullValueHandling = NullValueHandling.Ignore)]
public string Release { get; set; }

/// <summary>
/// A map or list of tags for this event.
/// </summary>
Expand Down Expand Up @@ -293,4 +301,4 @@ public override string ToString()
return JsonConvert.SerializeObject(this);
}
}
}
}

0 comments on commit 60acc87

Please sign in to comment.