Skip to the content
Krizaka Java
Skip to Content
Krizaka Java

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:

PropertyDefault
logging.structured.format.consoleecs — JSON logs
management.endpoints.web.exposure.includehealth,info,prometheus
management.tracing.sampling.probability0.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

WhereNameWhat
/actuator/healthoutboxper 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/healthdedupthe claims table answers; DOWN otherwise — listeners would dead-letter. management.health.dedup.enabled=false turns it off
/actuator/healthappConfigthe app-config store answers (read directly, not from the cache), with the platforms and those in maintenance. management.health.app-config.enabled=false
/actuator/infokrizakaproduct, service, version
observationkrizaka.outbox.relayone batch of the outbox relay, tagged krizaka.outbox.store
observationkrizaka.outbox.publishone publish, tagged with the exchange and the routing key
observationkrizaka.messaging.dedupone processOnce, tagged krizaka.consumer and outcome (processed, duplicate, failed)
observationkrizaka.idempotencyone 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

PropertyDescription
krizaka.observability.environmentStringno defaultName of the deployment environment, e.g. 'dev' (environment variable OBSERVABILITY_ENVIRONMENT), exported as the resource attribute deployment.environment.name. Optional.
krizaka.observability.ingest-tokenStringno defaultToken sent as a bearer Authorization header to the receiver (environment variable OBSERVABILITY_INGEST_TOKEN). Optional; never printed by toString.
krizaka.observability.otlp-endpointStringno defaultBase 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 defaultProduct the service belongs to, e.g. 'sovkora'. Required: tagged on every meter.
krizaka.observability.serviceStringno defaultShort name of the service within its product, e.g. 'conversation'. Required: tagged on every meter.
krizaka.observability.versionStringno defaultVersion of the running build, usually filtered in by the build ('@project.version@'). Required: tagged on every meter.

On this page