Skip to content
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

feat(meta-sdks): Remove runtime tags #13105

Merged
merged 10 commits into from
Jul 31, 2024
Merged

feat(meta-sdks): Remove runtime tags #13105

merged 10 commits into from
Jul 31, 2024

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Jul 30, 2024

Runtime tags are already set by e.g. Relay, so the Meta-Framework SDKs do not need to set them anymore.

Comment why this change was made: #13101 (review)

Copy link
Member

@lforst lforst left a comment

Choose a reason for hiding this comment

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

I fear the tests will need updating but lgtm

Copy link
Contributor

github-actions bot commented Jul 30, 2024

size-limit report 📦

Path Size
@sentry/browser 22.45 KB (0%)
@sentry/browser (incl. Tracing) 34.22 KB (0%)
@sentry/browser (incl. Tracing, Replay) 70.28 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 63.62 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 74.68 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 87.26 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 89.11 KB (0%)
@sentry/browser (incl. metrics) 26.75 KB (0%)
@sentry/browser (incl. Feedback) 39.37 KB (0%)
@sentry/browser (incl. sendFeedback) 27.06 KB (0%)
@sentry/browser (incl. FeedbackAsync) 31.7 KB (0%)
@sentry/react 25.22 KB (0%)
@sentry/react (incl. Tracing) 37.22 KB (0%)
@sentry/vue 26.6 KB (0%)
@sentry/vue (incl. Tracing) 36.06 KB (0%)
@sentry/svelte 22.58 KB (0%)
CDN Bundle 23.64 KB (0%)
CDN Bundle (incl. Tracing) 35.88 KB (0%)
CDN Bundle (incl. Tracing, Replay) 70.31 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 75.57 KB (0%)
CDN Bundle - uncompressed 69.37 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 106.31 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 218.16 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 230.99 KB (0%)
@sentry/nextjs (client) 37.07 KB (-0.04% 🔽)
@sentry/sveltekit (client) 34.79 KB (-0.06% 🔽)
@sentry/node 114.55 KB (0%)
@sentry/node - without tracing 89.33 KB (0%)
@sentry/aws-serverless 98.5 KB (0%)

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! Just had a suggestion to remove some tests that specifically tested the runtime tag before.

Comment on lines -48 to -49

expect(getIsolationScope().getScopeData().tags).toEqual({ runtime: 'browser' });
Copy link
Member

Choose a reason for hiding this comment

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

same here

@@ -45,8 +45,6 @@ describe('Sentry server SDK', () => {
expect(SentryNode.getIsolationScope().getScopeData().tags).toEqual({});

init({ dsn: 'https://[email protected]/1337' });

expect(SentryNode.getIsolationScope().getScopeData().tags).toEqual({ runtime: 'node' });
Copy link
Member

Choose a reason for hiding this comment

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

same here

@@ -36,7 +36,5 @@ describe('Initialize Solid Start SDK', () => {

it('sets the runtime tag on the isolation scope', () => {
solidStartInit({ dsn: 'https://[email protected]/1337' });

expect(SentryNode.getIsolationScope().getScopeData().tags).toEqual({ runtime: 'node' });
Copy link
Member

Choose a reason for hiding this comment

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

same here

@@ -36,7 +36,5 @@ describe('Initialize Solid Start SDK', () => {

it('sets the runtime tag on the isolation scope', () => {
solidStartInit({ dsn: 'https://[email protected]/1337' });

expect(SentrySolid.getIsolationScope().getScopeData().tags).toEqual({ runtime: 'browser' });
Copy link
Member

Choose a reason for hiding this comment

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

same here

@@ -48,7 +48,5 @@ describe('Client init()', () => {
expect(SentryReact.getIsolationScope().getScopeData().tags).toEqual({});

init({ dsn: 'https://[email protected]/1337' });

Copy link
Member

Choose a reason for hiding this comment

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

same here

@@ -52,8 +52,6 @@ describe('Server init()', () => {
expect(SentryNode.getIsolationScope().getScopeData().tags).toEqual({});

init({ dsn: 'https://[email protected]/1337' });

expect(SentryNode.getIsolationScope().getScopeData().tags).toEqual({ runtime: 'node' });
Copy link
Member

Choose a reason for hiding this comment

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

same here

@@ -77,8 +77,6 @@ describe('Client init()', () => {
expect(SentryReact.getIsolationScope().getScopeData().tags).toEqual({});

init({ dsn: 'https://[email protected]/1337' });

expect(SentryReact.getIsolationScope().getScopeData().tags).toEqual({ runtime: 'browser' });
Copy link
Member

Choose a reason for hiding this comment

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

same here

Comment on lines -46 to -47

expect(SentryNode.getIsolationScope().getScopeData().tags).toEqual({ runtime: 'node' });
Copy link
Member

Choose a reason for hiding this comment

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

l: let's delete the entire test since this was the only relevant check. I don't think we need to assert that the isolation scope has no tags at the beginning for Astro specifically.

@s1gr1d s1gr1d merged commit e15885a into develop Jul 31, 2024
107 checks passed
@s1gr1d s1gr1d deleted the sig/remove-runtime-tags branch July 31, 2024 09:51
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.

3 participants