Developers
Java / Spring: quickstart
Install and first-use steps for sending events to Feralin with Java / Spring. Code samples come from the SDK's own README and statuses from the capability record.
Install
com.feralin:java, com.feralin:feralin-spring-boot-starter 0.1.0 is published on Maven Central; install it with your package manager using the command below.
cd sdks/java
./gradlew publishAllPublicationsToLocalVendorRepository -PferalinVendorRepo=/yerel/maven-repoimplementation("com.feralin:java:0.1.0")
// Spring Boot için bunun yerine:
implementation("com.feralin:feralin-spring-boot-starter:0.1.0")First use
try (FeralinClient client = FeralinClient.builder("pk_live_...", "https://collect.example.com")
.consent(Consent.analyticsOnly())
.build()) {
client.identify("user_42");
client.track("order_completed", Map.of("order_id", "ord_1", "amount", 249.9));
FlushResult result = client.flush(); // fırlatmaz
if (result.error() instanceof TemporaryException) {
// 5xx, 429 veya ağ: olaylar kuyrukta, aynı Idempotency-Key ile yeniden denenir
} else if (result.error() instanceof RejectedException) {
// 4xx (429 hariç), 401 ve 403 dahil: olaylar atıldı, uygulama düşmez
}
}Code samples are taken as they are from sdks/java/README.md; comments inside may be in Turkish. You create the project key in the dashboard.
Capabilities
| Capability | Status |
|---|---|
| Event sending | Supported |
| Batch sending | Partial |
| Consent handling | Supported |
| Identity | Partial |
| Attribution | Not applicable |
| Deep links | Not applicable |
| Revenue | Partial |
| Error capture | Partial |
| Session replay | Not applicable |
| Tracing | Planned |
Verification chain
| Link | Status |
|---|---|
| Source | Passed |
| Build | Passed |
| Test | Passed |
| Registry publication | Passed |
| Clean install | Passed |
| Event receipt | Passed |
| Documentation | Passed |
| Super Admin proof | Not started |
Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.