Tracing-only browser setup still bundles error-event code
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, typescript
- Área
- devtools, performance
Línea de trabajo
Start by tracing how BrowserClient and Client statically import eventFromException, eventFromMessage, and prepareEvent, then inspect the listed files and the tracing-only setup described in the issue. Check the existing streaming-mode work in #22580 for related transaction code paths. Done means error-event code can be excluded from a spans-only browser build while normal error capture continues to work; the issue does not specify tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
A browser setup that sends only spans still bundles the client's error-event pipeline. The setup is BrowserClient with only browserTracingIntegration, no default integrations, and span streaming (the 11.x default).
- In a minified esbuild build on 11.10.0, the Sentry SDK comes to 119.2 KB raw after removing the default integrations and debug code.
- About 9.6 KB raw of that is error-event code. These files look unused when no error events are captured (inference, not traced at runtime):
browser/eventbuilder.js: 2,813 Bcore/utils/prepareEvent.js: 2,451 Bcore/utils/normalize.js: 1,461 Bbrowser/stack-parsers.js: 1,418 Bcore/session.js: 881 Bcore/utils/stacktrace.js: 840 B
BrowserClientandClientpull these in statically througheventFromException,eventFromMessageandprepareEvent. A tracing-only app has no way to drop them.- Related: #22580 covers the transaction code paths in streaming mode (
utils/transactionEvent.jsand envelope helpers, about 3 KB raw in the same build).
Seen in getsentry/junior's dashboard, which sends performance spans only and never error events, so that conversation content can't leak into events.
via @BYK.
--
- Lenguaje dominante
- TypeScript
- Estrellas
- 8.8k
- Forks
- 1.9k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 744
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/sentry-javascript
-
AWS Lambda Waiting for: Product Owner
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
getsentry/sentry-javascript#26910 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Only create Nuxt database and storage spans when there is a parent spanQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. AbiertoImprovement Nuxt
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
getsentry/sentry-javascript#25805 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Only create Cloudflare storage and D1 db spans when there is a parent spanQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. AbiertoCloudflare Workers Improvement Spans
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsentry/sentry-javascript#25804 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Core Feature: Typescript Meta: Breaking
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
getsentry/sentry-javascript#25286 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
getsentry/sentry-javascript#24200 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/sentry-javascript
Issues similares
-
foreground-up-signals-live: delivery-repair cell expects a spawn suggestion status no longer printsAbiertobug triage:owned
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
e2e-failure ready-to-code
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
redhat-developer/rhdh-plugin-export-overlays#4905 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
directus/directus#28558 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
review: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
1lck/Lithe-IDEA#2432 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
cloudflare/workers-sdk#17189 ·
Los mantenedores suelen responder en 1 día