Allow configuring session replays
Problem Statement
It's possible to set the replaysSessionSampleRate when using the Browser SDK: https://docs.sentry.io/platforms/javascript/session-replay/
But I can't see how to do it using the Elixir SDK
We tend to blast through our session replay limit quite quickly which means we end up missing replays for errors so want to significantly reduce the number of non-error sessions sampled
I raised this question in Discord and got pointed towards raising an issue here: https://canary.discord.com/channels/621778831602221064/1435881617427005572
Thanks in advance!
Solution Brainstorm
Unfortunately I can't comment on implementation details but there are quite a few configuration options so might be nice to be able to provide arbitrary options without the elixir SDK needing to be updated
@capoccias replays in an Elixir app still go through the Browser SDK. The Elixir SDK doesn't manage replays at all. If you're using Phoenix, you'll likely need to manage replaysSessionSampleRate in a file like assets/js/app.js or wherever you're including the Browser SDK.
@solnic @sl0thentr0py we should be able to close this out, right?
yes this is just supposed to be used in javascript