Skip to content

ref(v8): Remove Transaction concept #11422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 4, 2024
Merged

ref(v8): Remove Transaction concept #11422

merged 2 commits into from
Apr 4, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 4, 2024

This removes the Transaction class and any user facing remainders of this.

Now, we just always create a SentrySpan class, and this class handles sending the transaction event when it is a root span.

@mydea mydea self-assigned this Apr 4, 2024
Copy link
Contributor

github-actions bot commented Apr 4, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) 76.25 KB (-0.09% 🔽)
@sentry/browser (incl. Tracing, Replay) 67.53 KB (-0.12% 🔽)
@sentry/browser (incl. Tracing, Replay with Canvas) 71.35 KB (-0.11% 🔽)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.08 KB (-0.13% 🔽)
@sentry/browser (incl. Tracing) 32.19 KB (-0.24% 🔽)
@sentry/browser (incl. browserTracingIntegration) 32.19 KB (-0.24% 🔽)
@sentry/browser (incl. feedbackIntegration) 31.29 KB (+0.04% 🔺)
@sentry/browser (incl. feedbackModalIntegration) 31.42 KB (+0.11% 🔺)
@sentry/browser (incl. feedbackScreenshotIntegration) 31.43 KB (+0.11% 🔺)
@sentry/browser (incl. sendFeedback) 27.37 KB (+0.05% 🔺)
@sentry/browser 22.52 KB (+0.03% 🔺)
CDN Bundle (incl. Tracing, Replay, Feedback) 71.26 KB (-0.1% 🔽)
CDN Bundle (incl. Tracing, Replay) 65.99 KB (-0.09% 🔽)
CDN Bundle (incl. Tracing) 32.3 KB (-0.28% 🔽)
CDN Bundle 23.74 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 205.57 KB (-0.14% 🔽)
CDN Bundle (incl. Tracing) - uncompressed 96.28 KB (-0.29% 🔽)
CDN Bundle - uncompressed 70.05 KB (0%)
@sentry/react (incl. Tracing, Replay) 67.52 KB (-0.12% 🔽)
@sentry/react 22.56 KB (+0.05% 🔺)

@mydea mydea force-pushed the fn/no-export-transaction branch from e27da11 to 7b355d0 Compare April 4, 2024 10:11
@mydea mydea marked this pull request as ready for review April 4, 2024 10:17
@mydea mydea requested review from Lms24, AbhiPrasad, lforst and s1gr1d April 4, 2024 10:19
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets goooooo

@@ -65,7 +66,7 @@ export type AugmentedNextApiRequest = NextApiRequest & {
};

export type AugmentedNextApiResponse = NextApiResponse & {
__sentryTransaction?: Transaction;
__sentryTransaction?: SentrySpan;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove this, nothing seems to use __sentryTransaction

@@ -92,7 +92,7 @@ const _requestDataIntegration = ((options: RequestDataIntegrationOptions = {}) =

// In all other cases, use the request's associated transaction (if any) to overwrite the event's `transaction`
// value with a high-quality one
const reqWithTransaction = req as { _sentryTransaction?: Transaction };
const reqWithTransaction = req as { _sentryTransaction?: Span };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing seems to set _sentryTransaction 🤔

Can we remove all of this functionality here?

@mydea mydea merged commit 532ce3f into develop Apr 4, 2024
@mydea mydea deleted the fn/no-export-transaction branch April 4, 2024 14:34
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
This removes the `Transaction` class and any user facing remainders of
this.

Now, we just always create a `SentrySpan` class, and this class handles
sending the transaction event when it is a root span.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants