Skip to content

Commit

Permalink
Added API to set environment in SentryEventBuilder.
Browse files Browse the repository at this point in the history
Fixes #123
  • Loading branch information
laurenceputra committed Mar 9, 2017
1 parent 36ec587 commit 1439c21
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 @@ -815,6 +815,17 @@ public SentryEventBuilder setLogger(String logger) {
return this;
}

/**
* "environment": "dev"
*
* @param env Environment
* @return SentryEventBuilder
*/
public SentryEventBuilder setEnvironment(String env) {
event.put("environment", env);
return this;
}

/**
* "culprit": "my.module.function_name"
*
Expand Down

0 comments on commit 1439c21

Please sign in to comment.