Skip to content

8.49.0

Latest
Compare
Choose a tag to compare
@sentry-release-bot sentry-release-bot released this 09 Apr 16:42
2c6c1b8

Features

  • New continuous profiling configuration API (#4952 and #5063)

Important

With the addition of the new profiling configuation API, the previous profiling API are deprecated and will be removed in the next major version of the SDK:

  • SentryOptions.enableProfiling
  • SentryOptions.isProfilingEnabled
  • SentryOptions.profilesSampleRate
  • SentryOptions.profilesSampler
  • SentryOptions.enableLaunchProfiling

Additionally, note that the behavior of SentrySDK.startProfiler() will change once the above APIs are removed, as follows: before adding the new configuration API (SentryProfileOptions), SentrySDK.startProfiler() would unconditionally start a continuous profile if both SentryOptions.profilesSampleRate and SentryOptions.profilesSampler were nil, or no-op if either was non-nil (meaning the SDK would operate under original, transaction-based, profiling model). In the next major version, SentryOptions.profilesSampleRate and SentryOptions.profilesSampler will be removed, and SentrySDK.startProfile() will become a no-op unless you configure SentryProfileOptions.sessionSampleRate to a value greater than zero (which is its default). If you already have calls to SentrySDK.startProfiler() in your code, ensure you properly configure SentryProfileOptions via SentryOptions.configureProfiling to avoid losing profiling coverage.

Fixes

  • Continuous profile stop requests are cancelled by subsequent timely calls to start (#4993)

Improvements

  • Remove SDK side character limit of 8192 for SentryMessage (#5005) Now, the backend handles the character limit, which has the advantage of showing in the UI when the message was truncated.