Spring Boot with AllStak

Add error tracking, request, and query monitoring to your Spring Boot service with the AllStak Spring Boot starter. The starter auto-configures on startup.

Source repository:
AllStak/allstak-java-sdk
Source README:
README.md
SDK version:
0.4.0
Installation source:
Maven Central
Last verified:
2026-05-31

Installation

Add the Spring Boot starter dependency (Maven). The SDK README does not include a Gradle snippet.

<dependency>
  <groupId>sa.allstak</groupId>
  <artifactId>allstak-spring-boot-starter</artifactId>
  <version>0.4.0</version>
</dependency>

Configuration

Set your API key in application.properties. Every capture-* gate defaults to true.

allstak.api-key=ask_live_xxx
allstak.environment=production
allstak.release=v1.0.0
allstak.service-name=my-service
allstak.capture-http-requests=true
allstak.capture-exceptions=true

Basic example

No initialization code is required — the starter wires HTTP, exception, log, and JDBC capture automatically on startup.

Capturing errors

Unhandled exceptions are captured automatically (allstak.capture-exceptions). To capture a handled exception manually, use the static AllStak API from the core library.

import dev.allstak.AllStak;

AllStak.captureException(new RuntimeException("checkout failed"));

Tracking requests

Inbound HTTP requests are captured automatically when allstak.capture-http-requests is true (default); outbound RestTemplate/WebClient calls are traced. The README documents no manual request-capture call.

Best practices

  • Inject the API key from an environment variable, not hardcoded.
  • Set allstak.release (app version or commit SHA) for per-deploy grouping.
  • Disable any auto-integration via its capture-* gate (e.g. allstak.capture-kafka=false).