Skip to content

feat: Update Sentry SDK to 8.0.0-beta.5 #68520

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 10 commits into from
May 2, 2024
Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 9, 2024

Updates the SDK to the v8 beta release.

@mydea mydea self-assigned this Apr 9, 2024
@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Apr 9, 2024
Copy link
Contributor

github-actions bot commented Apr 9, 2024

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

Copy link

codecov bot commented Apr 9, 2024

Bundle Report

Changes will decrease total bundle size by 8.57kB ⬇️

Bundle name Size Change
app-webpack-bundle-array-push 26.51MB 8.57kB ⬇️

@mydea mydea changed the title build: Update Sentry SDK to 8.0.0-alpha.9 build: Update Sentry SDK to 8.0.0-beta.2 Apr 17, 2024
@mydea mydea force-pushed the fn/bump-sentry-sdk-alpha branch from 49e0e43 to ce50d27 Compare April 17, 2024 14:51
@mydea mydea force-pushed the fn/bump-sentry-sdk-alpha branch from ce50d27 to 47c655c Compare April 18, 2024 07:01
@mydea mydea force-pushed the fn/bump-sentry-sdk-alpha branch from 47c655c to 54d5cff Compare April 24, 2024 13:34
@mydea mydea changed the title build: Update Sentry SDK to 8.0.0-beta.2 build: Update Sentry SDK to 8.0.0-beta.3 Apr 24, 2024
@mydea mydea force-pushed the fn/bump-sentry-sdk-alpha branch from 54d5cff to b9f8ef6 Compare April 24, 2024 14:37
@AbhiPrasad
Copy link
Member

We can bump to https://github.com/getsentry/sentry-javascript/releases/tag/8.0.0-beta.4 now!

@mydea mydea force-pushed the fn/bump-sentry-sdk-alpha branch from f9701fe to 371cbe7 Compare April 25, 2024 12:38
@mydea mydea changed the title build: Update Sentry SDK to 8.0.0-beta.3 build: Update Sentry SDK to 8.0.0-beta.4 Apr 25, 2024
@mydea mydea force-pushed the fn/bump-sentry-sdk-alpha branch from 431de83 to b262614 Compare April 25, 2024 14:11
@mydea mydea force-pushed the fn/bump-sentry-sdk-alpha branch from b262614 to 5c445b5 Compare April 26, 2024 07:44
@mydea mydea force-pushed the fn/bump-sentry-sdk-alpha branch from 5c445b5 to 7a365a6 Compare April 26, 2024 11:05
};
// TODO: Remove this after we update to 8.0.0-beta.5
// @ts-expect-error This is wrongly typed in the current version...
return feedback.attachTo(buttonRef.current, options);
Copy link
Member

Choose a reason for hiding this comment

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

This is working ✅

@mydea mydea changed the title feat: Update Sentry SDK to 8.0.0-beta.4 feat: Update Sentry SDK to 8.0.0-beta.5 Apr 30, 2024
@mydea mydea force-pushed the fn/bump-sentry-sdk-alpha branch from c0e041c to ef70c31 Compare April 30, 2024 10:25
}
} else {
const widget = feedback.createWidget(options);
return () => {
feedback.removeWidget(widget);
widget.removeFromDom();
Copy link
Member

Choose a reason for hiding this comment

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

This is working now with beta 5

example from the Releases page
SCR-20240430-koxr

Copy link
Member

@ryan953 ryan953 left a comment

Choose a reason for hiding this comment

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

✅ for Replay & Feedback

dependencies:
"@types/pg" "*"

"@types/pg@*":
Copy link
Member

Choose a reason for hiding this comment

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

kinda gross these all get pulled in

Copy link
Member Author

Choose a reason for hiding this comment

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

note that this is only pulled in because of @sentry/node, it would not be there for @sentry/react. The downside of going all-in on OTEL 😬

Comment on lines +3175 to +3187
"@opentelemetry/instrumentation-connect" "0.35.0"
"@opentelemetry/instrumentation-express" "0.35.0"
"@opentelemetry/instrumentation-fastify" "0.35.0"
"@opentelemetry/instrumentation-graphql" "0.39.0"
"@opentelemetry/instrumentation-hapi" "0.36.0"
"@opentelemetry/instrumentation-http" "0.48.0"
"@opentelemetry/instrumentation-koa" "0.39.0"
"@opentelemetry/instrumentation-mongodb" "0.39.0"
"@opentelemetry/instrumentation-mongoose" "0.37.0"
"@opentelemetry/instrumentation-mysql" "0.37.0"
"@opentelemetry/instrumentation-mysql2" "0.37.0"
"@opentelemetry/instrumentation-nestjs-core" "0.36.0"
"@opentelemetry/instrumentation-pg" "0.40.0"
Copy link
Member

Choose a reason for hiding this comment

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

Would it be possible to make these something more like peer dependencies?

Is there an ongoing discussion anywhere about this? I would expect people (our customers) to be unhappy about how many new things we're pulling in

Copy link
Member Author

Choose a reason for hiding this comment

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

This is basically the tradeoff we have for auto-instrumentation with minimal setup. Without this, users would need to manually install a bunch of stuff 😬 so it's something we are aware of. If we find this to become a problem we'll look into this more.

@mydea mydea merged commit 5bff6b7 into master May 2, 2024
40 of 41 checks passed
@mydea mydea deleted the fn/bump-sentry-sdk-alpha branch May 2, 2024 09:58
@github-actions github-actions bot locked and limited conversation to collaborators May 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants