Skip to content

Improve observability for the app registration flow by adding structu…#60

Draft
Leon Beckamp (leonbeckamp) wants to merge 1 commit into
mainfrom
add/log-registration-process-signature
Draft

Improve observability for the app registration flow by adding structu…#60
Leon Beckamp (leonbeckamp) wants to merge 1 commit into
mainfrom
add/log-registration-process-signature

Conversation

@leonbeckamp
Copy link
Copy Markdown

Improve observability for the app registration flow by adding structured logging around key registration phases.

This adds log events for:

  • registration start before signature verification
  • registration preparation after shop creation/update
  • confirmation start before confirmation signature verification
  • secret rotation during confirmation
  • final registration confirmation

A small registrationLogContext() helper keeps the logged context consistent across these events. The context includes shop identity and state flags such as whether the shop exists, is confirmed, has a pending secret, or has a previous secret.

…red logging around key registration phases

This adds log events for:
  - registration start before signature verification
  - registration preparation after shop creation/update
  - confirmation start before confirmation signature verification
  - secret rotation during confirmation
  - final registration confirmation

A small `registrationLogContext()` helper keeps the logged context
consistent across these events. The context includes shop identity and
state flags such as whether the shop exists,is confirmed, has a pending
secret, or has a previous secret.

  - Ran `php -l src/Registration/RegistrationService.php`
  - Confirmed no syntax errors
@leonbeckamp Leon Beckamp (leonbeckamp) force-pushed the add/log-registration-process-signature branch from 48999d7 to 666fa9d Compare June 3, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant