Skip to content

Billing→S3: attach handler by config + heartbeat guard #2519

Description

@Hazel-Datastax

Attach the handler to billing.events when config enables it. DefaultBilling is not modified. With both billing-events-logging and billing.s3.enabled on, events go to the console handler and to S3.

What to do

  • Add BillingS3HandlerInstaller: @Observes StartupEvent; if billing.s3.enabled, Logger.getLogger("billing.events").addHandler(handler).
  • Heartbeat guard: a metric/gauge for "events delivered in the last interval"; document an alert for "delivery == 0 while billing traffic > 0".
  • CI test asserting the handler is attached to billing.events when billing.s3.enabled=true.

Acceptance

  • enabled=true → handler attached and receiving events; enabled=false (default) → not attached, zero overhead. CI assertion passes.
  • Requires billing-events-logging enabled for events to reach the logger.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions