Skip to content

feat: add destination_type to attempts table and metrics#805

Open
alexluong wants to merge 6 commits intomainfrom
feat/attempt-destination-type
Open

feat: add destination_type to attempts table and metrics#805
alexluong wants to merge 6 commits intomainfrom
feat/attempt-destination-type

Conversation

@alexluong
Copy link
Copy Markdown
Collaborator

Summary

  • Add destination_type column to the attempts table (PostgreSQL + ClickHouse migrations) and persist it from the delivery pipeline through all three logstore drivers
  • Expose destination_type in the attempt API response and support destination_type[] filtering on ListAttempts
  • Support destination_type as a dimension and filter in attempt metrics queries

No data backfill — existing rows default to empty string.

Test plan

  • Verify migrations apply cleanly on PG and CH
  • Confirm new attempts have destination_type populated in API responses
  • Test destination_type[] filter on GET /attempts
  • Test dimensions[]=destination_type and filters[destination_type]=webhook on GET /metrics/attempts
  • Verify old attempts return destination_type: "" without errors

🤖 Generated with Claude Code

alexluong and others added 3 commits April 4, 2026 00:23
Add destination_type to the Attempt model and persist it across all three
logstore drivers (PostgreSQL, ClickHouse, in-memory). Includes schema
migrations with indexes and filtering support in ListAttemptRequest.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add destination_type to APIAttempt response and support destination_type[]
query param for filtering in ListAttempts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add destination_type as a groupable dimension and filterable field in
attempt metrics queries across all three logstore drivers and the API.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
outpost-docs Ready Ready Preview, Comment Apr 4, 2026 1:31pm
outpost-website Ready Ready Preview, Comment Apr 4, 2026 1:31pm

Request Review

…imension

Add WithDestinationType factory option and tests covering:
- ListAttempts destination_type[] filter
- destination_type in attempt API response
- destination_type as metrics dimension and filter

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants