sentry-elixir icon indicating copy to clipboard operation
sentry-elixir copied to clipboard

Allow configuring session replays

Open capoccias opened this issue 1 month ago • 2 comments

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 avatar Nov 27 '25 15:11 capoccias

ELIXIR-44

linear[bot] avatar Nov 27 '25 15:11 linear[bot]

@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.

dnsbty avatar Nov 28 '25 22:11 dnsbty

@solnic @sl0thentr0py we should be able to close this out, right?

whatyouhide avatar Dec 04 '25 08:12 whatyouhide

yes this is just supposed to be used in javascript

sl0thentr0py avatar Dec 04 '25 09:12 sl0thentr0py