Skip to content

Conversation

mitchellhenke
Copy link
Contributor

Backport of #418 to the 7.x release line

This configuration option allows a user to specify the maximum number of
breadcrumbs when posting events to Sentry. The default value is 100.

This is helpful in situations in which long running processes can add a
large number of breadcrumbs resulting in failures to create Sentry
events when the message becomes too large.

Fixes #407
@mitchellhenke mitchellhenke merged commit bf03615 into 7.x Aug 11, 2020
@mitchellhenke mitchellhenke deleted the backport-breadcrumb-config branch August 11, 2020 13:27
@jeroenvisser101
Copy link

jeroenvisser101 commented Sep 1, 2020

@mitchellhenke would it be better to discard/limit breadcrumbs in add_breadcrumb? That would also prevent memory exhaustion in long-running processes.

|> Map.update(@breadcrumbs_key, [map], &[map | &1])

EDIT: just noticed this is a backport of #418, but the suggestion is still valid I think?

@mitchellhenke
Copy link
Contributor Author

Yes, I think that would be much better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants