File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,26 @@ Gradle the easiest way is to add the following to your `build.gradle` file:
2323applicationDefaultJvmArgs = ["-agentpath:path/to/"+System.mapLibraryName("rollbar_java_agent")]
2424```
2525
26- Regardless of your JVM language of choice, at some level their is an invocation of the JVM and
26+ Once you have your Java code using the Native Agent, you need make sure your ` rollbar-java ` is
27+ configured with appPackages at a minimum. If you also want to handle uncaught exceptions,
28+ make sure the handleUncaughtErrors is set to true.
29+
30+ ```
31+ // [appPackages]: Add a list of packages considered to be in your app. This is used
32+ // to filter out exceptions that don't match the package name in the stacktrace.
33+
34+ // [handleUncaughtErrors]: Set to true for unhandled exceptions
35+
36+ new Rollbar(withAccessToken("ACCESS-TOKEN")
37+ .appPackages(Arrays.asList("com.example.app"))
38+ .handleUncaughtErrors(true)
39+ .build());
40+ ```
41+
42+ Once you have the agent setup and ` rollbar-java ` configured, ` rollbar-java ` will attribute the exceptions
43+ using the agent as well as send back unhandled exceptions if configured.
44+
45+ Regardless of your JVM language of choice, at some level there will be an invocation of the JVM and
2746therefore there is a configuration option to pass arguments directly to the JVM.
2847
2948## Getting the agent library
You can’t perform that action at this time.
0 commit comments