I'm trying to only sample a fraction of our requests using ScoutApm.TrackedRequest.ignore() per the API docs in scout_apm_elixir, but seeing the following error:
@transaction_opts [...]
join("my_channel", ...) do
sample_transaction()
...
end
def sample_transaction do
if :rand.uniform() > 0.05 do
ScoutApm.TrackedRequest.ignore()
end
end
We're using Ecto 2, and we see this message flood our logs. Most of our transactions are for Phoenix channels (e.g. join and handle_in functions). We've been running Scout for a over month now without issues before this.
We're currently using a forked version of the latest official release (v0.14.5), with a single commit that's a workaround for this issue https://github.com/scoutapp/scout_apm_elixir/issues/89 (which I see is fixed in master). We can try using the latest master if you think that helps, but it doesn't look like any of the later commits are related to this particular issue.
I'm trying to only sample a fraction of our requests using
ScoutApm.TrackedRequest.ignore()
per the API docs inscout_apm_elixir
, but seeing the following error:Following this per the docs: https://github.com/scoutapp/scout_apm_elixir/blob/master/lib/scout_apm/tracked_request.ex#L146
How we're calling it:
We're using Ecto 2, and we see this message flood our logs. Most of our transactions are for Phoenix channels (e.g.
join
andhandle_in
functions). We've been running Scout for a over month now without issues before this.We're currently using a forked version of the latest official release (
v0.14.5
), with a single commit that's a workaround for this issue https://github.com/scoutapp/scout_apm_elixir/issues/89 (which I see is fixed in master). We can try using the latest master if you think that helps, but it doesn't look like any of the later commits are related to this particular issue.https://github.com/bobics/scout_apm_elixir/commit/d5f07f17bbaaea5e888184b0e41eff667e00cc7d