Skip to content
Feralin

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-repo
implementation("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

Java / Spring capability status
CapabilityStatus
Event sendingSupported
Batch sendingPartial
Consent handlingSupported
IdentityPartial
AttributionNot applicable
Deep linksNot applicable
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

Java / Spring verification chain
LinkStatus
SourcePassed
BuildPassed
TestPassed
Registry publicationPassed
Clean installPassed
Event receiptPassed
DocumentationPassed
Super Admin proofNot 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.