Observability
krizaka-observability — required service names, ECS logs, Prometheus and OpenTelemetry defaults.
<dependency>
<groupId>com.krizaka</groupId>
<artifactId>krizaka-spring-boot-starter-observability</artifactId>
</dependency>The starter brings the module, the actuator, OpenTelemetry tracing (Micrometer bridge + OTLP exporter) and the Prometheus registry.
krizaka:
observability: { product: acme, service: orders, version: "@project.version@" }The three names are required: a service that cannot say who it is does not start, and the error lists what is
missing. Every meter is tagged product, service and version.
Defaults, at the lowest priority
Your application.yml still wins over each of them:
| Property | Default |
|---|---|
logging.structured.format.console | ecs — JSON logs |
management.endpoints.web.exposure.include | health,info,prometheus |
management.tracing.sampling.probability | 0.1 |
Traces and metrics are exported over OTLP once OBSERVABILITY_OTLP_ENDPOINT (a base URL) is set; with none, nothing
is exported. OBSERVABILITY_INGEST_TOKEN is sent as Authorization: Bearer, and OBSERVABILITY_ENVIRONMENT becomes
the resource attribute deployment.environment.name. The old OTEL_TRACES_ENDPOINT is still accepted for one version,
with a deprecation warning. Logs go to <endpoint>/v1/logs too, only redacted: e-mail addresses, Authorization
and Bearer values, JWT-shaped strings and the values of keys named like a token, a secret, a password or an API key
become [REDACTED], in the ECS console log and in the export alike. If the redaction cannot be installed, the log
export does not start.
What the kit reports
| Where | Name | What |
|---|---|---|
/actuator/health | outbox | per relayed store: last success, consecutive failures; DOWN at krizaka.messaging.outbox.failure-threshold failures in a row. management.health.outbox.enabled=false turns it off |
/actuator/health | dedup | the claims table answers; DOWN otherwise — listeners would dead-letter. management.health.dedup.enabled=false turns it off |
/actuator/health | appConfig | the app-config store answers (read directly, not from the cache), with the platforms and those in maintenance. management.health.app-config.enabled=false |
/actuator/info | krizaka | product, service, version |
| observation | krizaka.outbox.relay | one batch of the outbox relay, tagged krizaka.outbox.store |
| observation | krizaka.outbox.publish | one publish, tagged with the exchange and the routing key |
| observation | krizaka.messaging.dedup | one processOnce, tagged krizaka.consumer and outcome (processed, duplicate, failed) |
| observation | krizaka.idempotency | one idempotent action, tagged with its scope and outcome (executed, replayed, rejected, failed) |
With the actuator each observation is a Micrometer timer — in Prometheus krizaka_outbox_publish_seconds_count, with an
error tag — and, with tracing on, a span: the Rabbit template's own span nests under the publish.
sum by (outcome) (rate(krizaka_messaging_dedup_seconds_count[5m]))Configuration
| Property | Description |
|---|---|
krizaka.observability.environmentStringno default | Name of the deployment environment, e.g. 'dev' (environment variable OBSERVABILITY_ENVIRONMENT), exported as the resource attribute deployment.environment.name. Optional. |
krizaka.observability.ingest-tokenStringno default | Token sent as a bearer Authorization header to the receiver (environment variable OBSERVABILITY_INGEST_TOKEN). Optional; never printed by toString. |
krizaka.observability.otlp-endpointStringno default | Base URL of the OTLP receiver (environment variable OBSERVABILITY_OTLP_ENDPOINT). Optional: with none, traces and metrics are not exported at all. Traces go to the endpoint's /v1/traces, metrics to its /v1/metrics. |
krizaka.observability.productStringno default | Product the service belongs to, e.g. 'sovkora'. Required: tagged on every meter. |
krizaka.observability.serviceStringno default | Short name of the service within its product, e.g. 'conversation'. Required: tagged on every meter. |
krizaka.observability.versionStringno default | Version of the running build, usually filtered in by the build ('@project.version@'). Required: tagged on every meter. |