Skip to content

Undocumented Limitation of Lazy-Loading SDK #4722

Closed

Description

@ArmoredCavalry

Core or SDK?

Platform/SDK

Which part? Which one?

Javascript

Description

I recently added version for release health / sessions to my JS SDK, but was only seeing sessions with errors. I ended up tracing this back to use of the lazy-loading script. Since it will only initialize the SDK if there is an error / exception, 100% of reported sessions were 'crashes'.

Suggested Solution

I believe this should be added as a note under the Limitations section of the Lazy Loading docs -

https://docs.sentry.io/platforms/javascript/install/lazy-load-sentry/#limitations

This was when searching the docs for "sessions" there is a better chance of discovering why this behavior is happening.

Activity

  1. getsentry-release commented on Feb 14, 2022

    @getsentry-release
    Contributor
  2. lobsterkatie commented on Feb 14, 2022

    @lobsterkatie
    Member

    Sorry 'bout that! We changed how BrowserTracing is accessed, so the docs are right, or at least, describe what should be right. Unfortunately, the CDN bundle was missed in that PR. I've pushed a new PR to fix this.

    Gah - that fix was was linked to the wrong issue. Sorry, folks. Reopening.

  3. lobsterkatie commented on Feb 28, 2022

    @lobsterkatie
    Member

    I'm pushing a fix now - thanks for pointing this out!

  4. locked and limited conversation to collaborators on Mar 17, 2022
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