Skip to content

Parameterize Remix 3 client span names #24872

Description

@chargome

Pageload and navigation spans use the low cardinality fallbacks Pageload and Navigation, with segment name source url. Other browser SDKs name these after the matched route. SvelteKit starts with the fallback and upgrades the span with updateName once the route id resolves.

Remix 3 gives the browser nothing to name from. remix/ui exposes no matched route or params, and the runtime never matches routes client side.

The server already resolves the route pattern, so the likely fix is to pass it to the client: in the document for pageloads, on a response header for navigations. Then upgrade the span name and set the source to route.

Matching in the browser instead is possible, because the route map has no node: imports and the asset server already serves it, but it adds @remix-run/route-pattern to the client bundle and needs the app to opt in.

Not needed for the alpha.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions