Skip to content
bliptracedocs

Install an SDK

Java

The zero-dependency Java SDK for Java 17+. Build it from GitHub with Maven.

On this page

The Java SDK builds an envelope from any Throwable and sends it with the JDK’s HttpClient. Zero runtime dependencies, Java 17+. The capture path swallows every error, so it never throws into your app.

Install from GitHub. Not on Maven Central yet. Install it into your local repository once, then depend on it. Source: github.com/bliptrace/bliptrace-java.

Install

git clone https://github.com/bliptrace/bliptrace-java
cd bliptrace-java && mvn -q -B install
<dependency>
    <groupId>com.g8scope</groupId>
    <artifactId>g8scope</artifactId>
    <version>1.0.0</version>
</dependency>

For CI, publish the built jar to your own repository manager instead of relying on ~/.m2.

Use it

import com.g8scope.Client;
import com.g8scope.Config;
import java.util.List;
import java.util.Map;

Config config = Config.builder()
        .key(System.getenv("BLIPTRACE_KEY"))
        .endpoint("https://ingest.bliptrace.com")
        .environment("production")
        .release("[email protected]")
        .basePath("com.example.myapp")        // package prefix for in-app frames
        .scrubKeys(List.of("password", "token", "authorization"))
        .build();

Client client = new Client(config);

try {
    riskyOperation();
} catch (Throwable t) {
    client.capture(t, Map.of("user", Map.of("id", "u_123")));
}
Option Default
key null (nothing is sent)
endpoint legacy host: set https://ingest.bliptrace.com
environment production
release null
timeoutMillis 3000
maxFrames / maxMessage 30 / 2000
ignoreExceptions [] (fully-qualified class names)
scrubKeys []
basePath "" (package prefix)
enabled true

Error subclasses are sent as fatal, everything else as error.

Documentation