Skip to content

Undocumented Limitation of Lazy-Loading SDK #4722

@ArmoredCavalry

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions