- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.5k
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
Conversation
| 🚨 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  | 
| Bundle ReportChanges will decrease total bundle size by 8.57kB ⬇️ 
 | 
49e0e43    to
    ce50d27      
    Compare
  
    ce50d27    to
    47c655c      
    Compare
  
    47c655c    to
    54d5cff      
    Compare
  
    54d5cff    to
    b9f8ef6      
    Compare
  
    | We can bump to https://github.com/getsentry/sentry-javascript/releases/tag/8.0.0-beta.4 now! | 
f9701fe    to
    371cbe7      
    Compare
  
    431de83    to
    b262614      
    Compare
  
    b262614    to
    5c445b5      
    Compare
  
    5c445b5    to
    7a365a6      
    Compare
  
    | }; | ||
| // 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); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working ✅
c0e041c    to
    ef70c31      
    Compare
  
    | const widget = feedback.createWidget(options); | ||
| return () => { | ||
| feedback.removeWidget(widget); | ||
| widget.removeFromDom(); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this 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@*": | 
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 😬
| "@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" | 
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
afc851b    to
    4f68800      
    Compare
  
    
Updates the SDK to the v8 beta release.