Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Instrument Remix 3 server requests via fetch-router

Aberta
#24,663 1 comentário 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@chargome já está trabalhando nisso.

Desde 23/9/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

Remix

Add the orchestrion config and server middleware that produce spans for Remix 3 requests.

  • Patch createRouter in @remix-run/fetch-router and prepend the Sentry middleware. Supply the matcher too, since the router does not expose the matched route pattern on the request context.
  • Resolve the route at middleware entry, so errors thrown downstream already carry it.
  • Set http.route, response status and a low cardinality span name. router.mount() prefixes must be included.
  • Ship the --import @sentry/remix/v3/node entry, which registers Remix's TypeScript loader and Sentry's module hook together, so the start command keeps one flag.

The middleware does not open a span. It enriches the one @sentry/node already opened for node:http. That is what keeps it working on other runtimes later.

Channel subscription happens in the --import entry, not in Sentry.init(). createRouter() runs while app modules are being imported, which is before any init() call in the server entry.

Done when e2e covers parameterised routes, mounted routes and response status, and the raw id never appears in a span name.

Linguagem predominante
TypeScript
Estrelas
8.7k
Forks
1.9k
Merge médio
1d 17h
PRs com merge (30d)
543

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getsentry/sentry-javascript

Todas as issues de getsentry/sentry-javascript

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.