Skip to content

Separate connection log methods from app identities #27412

Closed

Description

@EhabY

Completed server-side connection log storage, API, search, and UI work for the Scalable Approach for Adding New IDE Session Types RFC, refined by the Completing Scalable IDE Session Tracking RFC.

The original ENUM-to-TEXT proposal evolved into separating how a connection was made (connection_method) from which app made it (app_name). The server-side implementation landed in coder/coder#30466, replacing #29674. This issue remains completed/closed.

Landed scope

  • Migration 000617 separates method and app identity in connection_logs. Historical vscode and jetbrains rows become SSH rows with their canonical app names; other rows retain their methods with no app identity.
  • GET /api/v2/connectionlog returns connection_method and optional app_name / app_display_name. Deprecated type remains a plain string for compatibility.
  • Coderd maps legacy agent reports into the new storage shape.
  • Search supports method: and repeatable app: filters with consistent list/count results. Deprecated type: retains its previous behavior and cannot be mixed with the new filters.
  • The UI uses a Method menu, shows app identity alongside the method, warns on deprecated type: filters, and uses method:ssh for the Active SSH connections preset.
  • SDK/generated artifacts, migration and filter regression coverage, and API/filter documentation are updated.

Upgrade and rollback

Migration 617 rewrites connection_logs under an ACCESS EXCLUSIVE lock. #30466 measured about 5.8s for 1M rows, 49.7s for 10M, and 99.5s for 25M on indexed PostgreSQL 13 (single runs, excluding lock waits; not deployment guarantees). Rollback folds app names back into legacy types and loses per-app detail; apps registered after the migration fall back to SSH.

Separate follow-ups (not completion requirements)

  • CLIENT-1037 / #30467: explicit agent API v2.13 method/app reports and their ingestion compatibility. The unmerged proto and agent-reporting work formerly listed here has moved to that issue, replacing feat: report the app that made a connection #29675.
  • CLIENT-1010: duration API/UI and trustworthy disconnect timestamps.
  • Future removal of deprecated type, type: filters, and excluded_app_names; workspace-app and port filters; JetBrains per-product propagation; and a raw port-forward producer are outside the landed scope.

Depends on the completed CLIENT-644 work.


Updated by Coder Agents on behalf of @EhabY.

Activity

  1. added theissue type on Jul 22, 2026
  2. linear-code commented on Jul 22, 2026

    @linear-code
  3. changed the title [-]Migrate connection_logs.type from ENUM to TEXT (IDE session types phase 3)[/-] [+]Migrate connection_logs.type from ENUM to TEXT[/+] on Jul 22, 2026
  4. added a commit that references this issue on Oct 12, 2026
    5b060be
  5. changed the title [-]Migrate connection_logs.type from ENUM to TEXT[/-] [+]Separate connection log methods from app identities[/+] on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions