Skip to content

middleware::LogRequests: Extract Sentry setup into dedicated middleware struct #4137

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

Merged
merged 2 commits into from
Nov 8, 2021

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 6, 2021

The LogRequests should be responsible for logging the requests, but nothing more. This PR extracts the custom Sentry code from it and moves it into a dedicated middleware, that wraps the sentry-conduit middleware.

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Nov 6, 2021
@Turbo87 Turbo87 requested review from locks and JohnTitor November 6, 2021 12:43
@bors
Copy link
Contributor

bors commented Nov 7, 2021

☔ The latest upstream changes (presumably #4143) made this pull request unmergeable. Please resolve the merge conflicts.

Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@JohnTitor
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Nov 8, 2021

📌 Commit 0c1bebf has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Nov 8, 2021

⌛ Testing commit 0c1bebf with merge 6ab417f...

@bors
Copy link
Contributor

bors commented Nov 8, 2021

☀️ Test successful - checks-actions
Approved by: JohnTitor
Pushing 6ab417f to master...

@bors bors merged commit 6ab417f into rust-lang:master Nov 8, 2021
@Turbo87 Turbo87 deleted the sentry-middleware branch November 8, 2021 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants