We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef71ce1 + 0c777ca commit 701d1cdCopy full SHA for 701d1cd
lib/sentry/context.ex
@@ -250,7 +250,10 @@ defmodule Sentry.Context do
250
251
sentry_metadata =
252
get_sentry_context()
253
- |> Map.update(@breadcrumbs_key, [map], &[map | &1])
+ |> Map.update(@breadcrumbs_key, [map], fn breadcrumbs ->
254
+ breadcrumbs = [map | breadcrumbs]
255
+ Enum.take(breadcrumbs, -1 * Sentry.Config.max_breadcrumbs())
256
+ end)
257
258
:logger.update_process_metadata(%{sentry: sentry_metadata})
259
end
0 commit comments