getsentry / self-hosted

Sentry, feature-complete and packaged up for low-volume deployments and proofs-of-concept
https://develop.sentry.dev/self-hosted/
Other
7.86k stars 1.77k forks source link

session replay is not working for javascript browser framework #3289

Closed singhdimple closed 3 weeks ago

singhdimple commented 2 months ago

Problem Statement

No session replay is sent to sentry I'm using below html file to integrate sentry but no session replay can be seen in my project

<!DOCTYPE html>

TestProject

TestProject

hello world

Solution Brainstorm

No response

hubertdeng123 commented 2 months ago

Your sample rate is 0.1, are there errors being sent to your Sentry project? Otherwise, it is likely that no session replays will be sent.

singhdimple commented 2 months ago

@hubertdeng123 I have changed the sample rate to 1.0 but still no session replay has been send to sentry.

aldy505 commented 2 months ago

By any chance, have you add this into your sentry/sentry.conf.py file?

https://github.com/getsentry/self-hosted/blob/3cf323843ab9e63515bd2816a426bd5116324834/sentry/sentry.conf.example.py#L377-L381

singhdimple commented 2 months ago

@aldy505, Yes I'm using this(JS_SDK_LOADER_DEFAULT_SDK_URL = "https://browser.sentry-cdn.com/%s/bundle.tracing.min.js") in my sentry.conf.py because without it I'm getting CORS error. is it affecting my session reply ??

hubertdeng123 commented 1 month ago

Can you check your nginx container? We want to make sure that the envelopes are successfully being sent to your sentry instance.

singhdimple commented 1 month ago

@hubertdeng123, I'm not using niginx instead i'm using traefik and it is working fine.

aldy505 commented 1 month ago

Ah fellow Traefik user.

You have to configure a CORS header on your Traefik route rule. See https://develop.sentry.dev/self-hosted/reverse-proxy/#traefik

getsantry[bot] commented 1 month ago

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀