TramAI - governed AI workflows for Java and Kotlin

tramai-spring-boot-starter-sovereign-ops-observability

Version: 0.6.0
Status: Preview
Role: OpenTelemetry instrumentation for the sovereign ops audit-outbox worker.

Purpose

This add-on registers a SovereignOpsAuditOutboxWorkerObserverContribution backed by OpenTelemetry, so audit-outbox worker activity is visible in your existing tracing/metrics pipeline.

It activates on presence, not on a property: the contribution is created when an OpenTelemetry bean exists in the context and no OT contribution has been registered yet. The module ships the OpenTelemetry API only — bring the SDK and exporter yourself. It registers before the ops auto-configuration, so the base starter's composite observer chain includes it while status snapshots keep updating.

What it provides

TypeRole
OpenTelemetrySovereignOpsAuditOutboxWorkerObserverEmits worker telemetry through an OpenTelemetry instance
SovereignOpsOutboxObservabilityAutoConfigurationCreates the observer contribution, backing off if a bean with that name exists

Instrumentation is best-effort: an unavailable exporter must not break the worker path.

Dependencies

dependencies {
    implementation(platform("dev.tramai:tramai-bom:0.6.0"))
    implementation("dev.tramai:tramai-spring-boot-starter")
    implementation("dev.tramai:tramai-spring-boot-starter-sovereign-ops")
    implementation("dev.tramai:tramai-spring-boot-starter-sovereign-ops-observability")
    implementation("io.opentelemetry:opentelemetry-sdk") // SDK + exporter are yours
}
tramai:
  sovereign:
    ops:
      outbox:
        worker:
          enabled: true

When to use this add-on

  • You already run OpenTelemetry and want the outbox worker in the same traces.
  • You want worker telemetry without adopting Micrometer.

When NOT to use this add-on