Skip to content

Commit

Permalink
Merge pull request #34 from grabbou/patch-1
Browse files Browse the repository at this point in the history
Add `setRelease`
  • Loading branch information
Josh Holtz committed Mar 5, 2016
2 parents 67d038b + ff91e02 commit b2a2aa8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sentry-android/src/main/java/com/joshdholtz/sentry/Sentry.java
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ public static enum SentryEventLevel {
public SentryEventBuilder() {
event = new HashMap<String, Object>();
event.put("event_id", UUID.randomUUID().toString().replace("-", ""));
event.put("platform", "java");
this.setTimestamp(System.currentTimeMillis());
}

Expand Down Expand Up @@ -790,6 +791,16 @@ public SentryEventBuilder setServerName(String serverName) {
event.put("server_name", serverName);
return this;
}

/**
*
* @param release Release
* @return SentryEventBuilder
*/
public SentryEventBuilder setRelease(String release) {
event.put("release", release);
return this;
}

/**
*
Expand Down

0 comments on commit b2a2aa8

Please sign in to comment.