Tracing-only browser setup still bundles error-event code
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Refactoring
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript, typescript
- Bereich
- devtools, performance
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
--
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8.8k
- Forks
- 1.9k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 744
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus getsentry/sentry-javascript
-
AWS Lambda Waiting for: Product Owner
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
getsentry/sentry-javascript#26910 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Only create Nuxt database and storage spans when there is a parent spanEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. OffenImprovement Nuxt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
getsentry/sentry-javascript#25805 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Only create Cloudflare storage and D1 db spans when there is a parent spanEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. OffenCloudflare Workers Improvement Spans
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
getsentry/sentry-javascript#25804 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Core Feature: Typescript Meta: Breaking
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
getsentry/sentry-javascript#25286 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
javascript
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
getsentry/sentry-javascript#24200 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in getsentry/sentry-javascript
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
garrytan/gbrain#10437 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"Evtl. vergeben @acmerfight hat das heute übernommen. Offenuntriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
earendil-works/pi#12573 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
agentes-chat/agentes-chat#1506 ·
Maintainer antworten meist innerhalb von 1 Tag
-
comp/desktop desktop/files os/windows P2 type/perf
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
NousResearch/hermes-agent#160359 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Missing repro Platform: Android
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
software-mansion/react-native-reanimated#11554 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag