From 139a0e36b538850f21699935c485489393d5bf0c Mon Sep 17 00:00:00 2001 From: Zadat Olayinka Date: Thu, 15 Apr 2021 18:48:12 +0100 Subject: [PATCH] readme updated + dashbpard drop down for java updated --- dashboard/src/config.js | 34 ++++++++++++++++++++++++++++++++-- java-sdk/README.md | 1 + 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/dashboard/src/config.js b/dashboard/src/config.js index c1433f16df..402aa42f56 100755 --- a/dashboard/src/config.js +++ b/dashboard/src/config.js @@ -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: ` + + io.hackerbay.fyipe + java-sdk + CURRENT_VERSION + + `, + }, + 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', diff --git a/java-sdk/README.md b/java-sdk/README.md index d8681ef7c5..c20d95dcbc 100644 --- a/java-sdk/README.md +++ b/java-sdk/README.md @@ -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 {