readme updated + dashbpard drop down for java updated

This commit is contained in:
Zadat Olayinka
2021-04-15 18:48:12 +01:00
parent 90eb9caccb
commit 139a0e36b5
2 changed files with 33 additions and 2 deletions

View File

@@ -1356,8 +1356,38 @@ var_dump($response);
{
id: 'java',
language: 'Java',
errorTracking:
"No quickstart available at the moment. We're working on them and they will be launched soon. ",
errorTracking: {
installation: {
package: `
Maven Install`,
command: `
<dependency>
<groupId>io.hackerbay.fyipe</groupId>
<artifactId>java-sdk</artifactId>
<version>CURRENT_VERSION</version>
</dependency>
`,
},
usage: `
import io.hackerbay.fyipe.FyipeTracker;
import io.hackerbay.fyipe.model.TrackerOption;
// set up option
TrackerOption trackerOption = new TrackerOption(50); // set maximum timeline per event
// set up the FyipeTracker
public FyipeTracker tracker = new FyipeTracker(
'${apiUrl ? apiUrl : 'API_URL'}',
'${errorTracker ? errorTracker._id : 'ERROR_TRACKER_ID'}',
'${errorTracker ? errorTracker.key : 'ERROR_TRACKER_KEY'}',
trackerOption
);
public void triggerError() {
throw new Exception("Something went wrong"); // calling this will trigger an error and its sent to your fyipe dashboard
}
`,
},
height: {
install: '100px',
usage: '300px',

View File

@@ -71,6 +71,7 @@ import com.google.gson.JsonObject;
import io.hackerbay.fyipe.FyipeTracker;
import java.io.IOException;
import io.hackerbay.fyipe.model.Tag;
import io.hackerbay.fyipe.model.TrackerOption;
public class SampleClass {