Skip to content

Ensure we support browser profiling properly #1144

Description

@BYK

Full support for UI Profiling is available from version 10.27.0.
Docs are updated to include the new UI Profiling mode: https://docs.sentry.io/platforms/javascript/profiling/
The profilesSampleRate is now deprecated in favor of profileSessionSampleRate. The decisions if something should be profiled or not will now be made at SDK initialization (start of a user session on page load). And then, the whole user session will be continuously profiled.
In profileLifecycle: "manual" (default), users can start and stop profiling with Sentry.uiProfiler.startProfiler() and .stopProfiler().
In profileLifecycle: "trace" the SDK automatically profiles when there is at least one active root/segment span. This is most similar to our previous transaction-based approach.

by @s1gr1d

We should probably promote (or auto-enable) profileLifecycle: "trace" when Spotlight is enabled.

We also very likely need to address #693 first.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions