Skip to content

Session Replays Not Working for Front End Errors in AspNetCore #72511

Open

Description

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Create a new project in with visual studio as an AspNetCore Web App (Model-View-Controller):
    image

  2. Should have the following folder structure:
    image

  3. Create new project in Sentry with browser javascript:

image

  1. Add the following line of code to the header in the Views/Home/Shared/_Layout.cshtml file with the correct dsn number for that project:

image

  1. Add the following line of code to the Views/Home/Privacy.cshtml file to trigger an error that is sent to sentry:

image

  1. Run the solution and click on the Privacy tab at the top and the error will be triggered and sent to the Sentry project:

image

Expected Result

Since session replays are on by default with the loader script:

https://docs.sentry.io/platforms/javascript/install/loader/

This should trigger an Error with a session replay as we threw an error in the <script> tag and you will see this in the sentry project. However, this will not show up in the session replays for that specific error. Since the default is at session replays will trigger after every error it should show up in that issue:

image

After running it a few times however I do see a session replay in the normal replays but do not see any issues attached to that session replay.

Actual Result

Should be seeing it in this tab of the issue since it is an error but I do not:

image

Product Area

Replays

Link

No response

DSN

No response

Version

No response

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions