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

fix(deps): update dependency @sentry/react to v9.12.0 #277

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 28, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sentry/react (source) 9.9.0 -> 9.12.0 age adoption passing confidence

Release Notes

getsentry/sentry-javascript (@​sentry/react)

v9.12.0

Compare Source

v9.11.0

Compare Source

  • feat(browser): Add http.redirect_count attribute to browser.redirect span (#​15943)
  • feat(core): Add consoleLoggingIntegration for logs (#​15955)
  • feat(core): Don't truncate error messages (#​15818)
  • feat(nextjs): Add release injection in Turbopack (#​15958)
  • feat(nextjs): Record turbopack as tag (#​15928)
  • feat(nuxt): Base decision on source maps upload only on Nuxt source map settings (#​15859)
  • feat(react-router): Add sentryHandleRequest (#​15787)
  • fix(node): Use module instead of require for CJS check (#​15927)
  • fix(remix): Remove mentions of deprecated ErrorBoundary wrapper (#​15930)
  • ref(browser): Temporarily add sentry.previous_trace span attribute (#​15957)
  • ref(browser/core): Move all log flushing logic into clients (#​15831)
  • ref(core): Improve URL parsing utilities (#​15882)

Bundle size 📦

Path Size
@​sentry/browser 23.2 KB
@​sentry/browser - with treeshaking flags 23.02 KB
@​sentry/browser (incl. Tracing) 36.83 KB
@​sentry/browser (incl. Tracing, Replay) 73.99 KB
@​sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.39 KB
@​sentry/browser (incl. Tracing, Replay with Canvas) 78.66 KB
@​sentry/browser (incl. Tracing, Replay, Feedback) 91.22 KB
@​sentry/browser (incl. Feedback) 40.33 KB
@​sentry/browser (incl. sendFeedback) 27.83 KB
@​sentry/browser (incl. FeedbackAsync) 32.63 KB
@​sentry/react 25 KB
@​sentry/react (incl. Tracing) 38.75 KB
@​sentry/vue 27.41 KB
@​sentry/vue (incl. Tracing) 38.55 KB
@​sentry/svelte 23.23 KB
CDN Bundle 24.44 KB
CDN Bundle (incl. Tracing) 36.85 KB
CDN Bundle (incl. Tracing, Replay) 71.87 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 77.07 KB
CDN Bundle - uncompressed 71.24 KB
CDN Bundle (incl. Tracing) - uncompressed 108.94 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 220.23 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 232.8 KB
@​sentry/nextjs (client) 40.06 KB
@​sentry/sveltekit (client) 37.26 KB
@​sentry/node 142.88 KB
@​sentry/node - without tracing 96.08 KB
@​sentry/aws-serverless 120.43 KB

v9.10.1

Compare Source

v9.10.0

Compare Source

Important Changes
  • feat: Add support for logs

    • feat(node): Add logging public APIs to Node SDKs (#​15764)
    • feat(core): Add support for beforeSendLog (#​15814)
    • feat(core): Add support for parameterizing logs (#​15812)
    • fix: Remove critical log severity level (#​15824)

    All JavaScript SDKs other than @sentry/cloudflare and @sentry/deno now support sending logs via dedicated methods as part of Sentry's upcoming logging product.

    Logging is gated by an experimental option, _experiments.enableLogs.

    Sentry.init({
      dsn: 'PUBLIC_DSN',
      // `enableLogs` must be set to true to use the logging features
      _experiments: { enableLogs: true },
    });
    
    const { trace, debug, info, warn, error, fatal, fmt } = Sentry.logger;
    
    trace('Starting database connection', { database: 'users' });
    debug('Cache miss for user', { userId: 123 });
    error('Failed to process payment', { orderId: 'order_123', amount: 99.99 });
    fatal('Database connection pool exhausted', { database: 'users', activeConnections: 100 });
    
    // Structured logging via the `fmt` helper function. When you use `fmt`, the string template and parameters are sent separately so they can be queried independently in Sentry.
    
    info(fmt(`Updated profile for user ${userId}`));
    warn(fmt(`Rate limit approaching for endpoint ${endpoint}. Requests: ${requests}, Limit: ${limit}`));

    With server-side SDKs like @sentry/node, @sentry/bun or server-side of @sentry/nextjs or @sentry/sveltekit, you can do structured logging without needing the fmt helper function.

    const { info, warn } = Sentry.logger;
    
    info('User %s logged in successfully', [123]);
    warn('Failed to load user %s data', [123], { errorCode: 404 });

    To filter logs, or update them before they are sent to Sentry, you can use the _experiments.beforeSendLog option.

  • feat(browser): Add diagnoseSdkConnectivity() function to programmatically detect possible connectivity issues (#​15821)

    The diagnoseSdkConnectivity() function can be used to programmatically detect possible connectivity issues with the Sentry SDK.

    const result = await Sentry.diagnoseSdkConnectivity();

    The result will be an object with the following properties:

    • "no-client-active": There was no active client when the function was called. This possibly means that the SDK was not initialized yet.
    • "sentry-unreachable": The Sentry SaaS servers were not reachable. This likely means that there is an ad blocker active on the page or that there are other connection issues.
    • undefined: The SDK is working as expected.
  • SDK Tracing Performance Improvements for Node SDKs

    • feat: Stop using dropUndefinedKeys (#​15796)
    • feat(node): Only add span listeners for instrumentation when used (#​15802)
    • ref: Avoid dropUndefinedKeys for spanToJSON calls (#​15792)
    • ref: Avoid using SentryError for PromiseBuffer control flow (#​15822)
    • ref: Stop using dropUndefinedKeys in SpanExporter (#​15794)
    • ref(core): Avoid using SentryError for event processing control flow (#​15823)
    • ref(node): Avoid dropUndefinedKeys in Node SDK init (#​15797)
    • ref(opentelemetry): Avoid sampling work for non-root spans (#​15820)

    We've been hard at work making performance improvements to the Sentry Node SDKs (@sentry/node, @sentry/aws-serverless, @sentry/nestjs, etc.). We've seen that upgrading from 9.7.0 to 9.10.0 leads to 30-40% improvement in request latency for HTTP web-server applications that use tracing with high sample rates. Non web-server applications and non-tracing applications will see smaller improvements.

Other Changes
  • chore(deps): Bump rrweb to 2.35.0 (#​15825)
  • deps: Bump bundler plugins to 3.2.3 (#​15829)
  • feat: Always truncate stored breadcrumb messages to 2kb (#​15819)
  • feat(nextjs): Disable server webpack-handling for static builds (#​15751)
  • fix(nuxt): Don't override Nuxt options if undefined (#​15795)

Configuration

📅 Schedule: Branch creation - "* 0-3 * * *" in timezone America/New_York, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/sentry-javascript-monorepo branch from aa4ed81 to cca75aa Compare March 28, 2025 16:29
@renovate renovate bot changed the title fix(deps): update dependency @sentry/react to v9.10.0 fix(deps): update dependency @sentry/react to v9.10.1 Mar 28, 2025
@renovate renovate bot force-pushed the renovate/sentry-javascript-monorepo branch from cca75aa to 90acf44 Compare April 3, 2025 15:39
@renovate renovate bot changed the title fix(deps): update dependency @sentry/react to v9.10.1 fix(deps): update dependency @sentry/react to v9.11.0 Apr 3, 2025
@renovate renovate bot force-pushed the renovate/sentry-javascript-monorepo branch from 90acf44 to 37fd78f Compare April 8, 2025 16:03
@renovate renovate bot changed the title fix(deps): update dependency @sentry/react to v9.11.0 fix(deps): update dependency @sentry/react to v9.12.0 Apr 8, 2025
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.

0 participants