Skip to content

feat(app): context/request cause tracing - #6795

Draft
fetchfern wants to merge 2 commits into
fetch/app-rate-limit-handlingfrom
fetch/app-context-tracing
Draft

feat(app): context/request cause tracing#6795
fetchfern wants to merge 2 commits into
fetch/app-rate-limit-handlingfrom
fetch/app-context-tracing

Conversation

@fetchfern

@fetchfern fetchfern commented Jul 21, 2026

Copy link
Copy Markdown
Member

Based on #6790 (todo switch base to main when that's merged)

Implements "request cause tracing" to the app; the "cause" for a command invocation, like instance/refresh/filesystem_watch or navigation/instance/overview is passed along the Tauri invocation, which gets carried down to the fetch handlers & included in the request headers.

This is useful to trace what action triggered a request when investigating request spam bugs from the app.

It's tracked using the Referer header so it works better with Cloudflare analytics, as well as another modrinth-specific header.

Closes DEV-1240

@modrinth-bot

Copy link
Copy Markdown
Member

Pull request changelog

App

Added

Changed

Deprecated

Removed

Fixed

Security

Website

Added

Changed

Deprecated

Removed

Fixed

Security

Hosting

Added

Changed

Deprecated

Removed

Fixed

Security

@fetchfern
fetchfern changed the base branch from main to fetch/app-rate-limit-handling July 21, 2026 17:10
@fetchfern
fetchfern marked this pull request as draft July 21, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet