Skip to content

#664 Add structured log for each price alert delivery attempt with threshold, current price, and delivery status - #672

Merged
Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
jotel-dev:664-price-alert-delivery-logging
Jul 27, 2026
Merged

#664 Add structured log for each price alert delivery attempt with threshold, current price, and delivery status#672
Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
jotel-dev:664-price-alert-delivery-logging

Conversation

@jotel-dev

Copy link
Copy Markdown
Contributor

Summary
Adds structured debug-level logging for each price alert webhook delivery attempt to improve operational observability. Previously, no log was emitted when a price alert delivery was attempted, making it difficult for operators to trace alert delivery activity or diagnose missed/duplicate deliveries without querying the database.

The implementation adds a debug log entry immediately after each delivery attempt completes (both successful and failed), containing:

alert_id: Unique identifier of the price alert
creator_id: Creator whose key price triggered the alert
threshold: Target price threshold configured for the alert
triggered_price: Actual price that triggered the alert
delivery_status: Outcome of the delivery attempt ("success" or "failed")
attempted_at: Timestamp when the delivery attempt was made
The callback URL is intentionally excluded from the debug log to avoid exposing sensitive endpoint information. Existing warn/error logs with masked URLs remain for debugging delivery failures.

Testing
pnpm lint
pnpm build
pnpm exec prisma generate when schema or generated types changed
Checklist
Linked issue or backlog item (#664)
No secrets or live credentials added
Docs updated if setup or env changed
Change is scoped to one problem

closes #664

…ttempt with threshold, current price, and delivery status
@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@jotel-dev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit e76ee0a into accesslayerorg:main Jul 27, 2026
1 check passed
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.

Add structured log for each price alert delivery attempt with threshold, current price, and delivery status

2 participants