Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plug sentry as an ActixWeb middleware #4024

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

Kerollmops
Copy link
Member

@Kerollmops Kerollmops commented Aug 30, 2023

This PR is an experiment using sentry to track HTTP issues that could be returned to the clients. The SENTRY_DSN is not shipped with the binary as of now, as we prefer to try it on the Cloud. However, our users can define the SENTRY_DSN environment variable they want to keep track of the Meilisearch issues on their own.

The main problem I feared was a blow-up of the meilisearch binary size when adding sentry. The binary size for macOS x86_64 with sentry is 107M, and without is 106M. To conclude, adding the sentry and sentry-actix dependencies doesn't add much to the binary size. The compile time is 6m 21s on my iMac x86_64 when sentry is enabled and 6m 26s without for a fresh release build. So, no impact on the indexing time.

I will now need to try it out and generate errors on the Meilisearch side to see how well-formatted and helpful the sentry reports are.

@Kerollmops Kerollmops added this to the v1.4.0 milestone Aug 30, 2023
@curquiza curquiza modified the milestones: v1.4.0, v1.5.0 Sep 4, 2023
@Kerollmops Kerollmops removed this from the v1.5.0 milestone Oct 18, 2023
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.

None yet

2 participants