Add bot/crawler filtering to ring middleware - #3
Draft
ashpland wants to merge 1 commit into
Draft
Conversation
Add ability to filter out bot/crawler requests from Rollbar reporting to reduce noise from automated traffic. The middleware now accepts options: - :ignore-bots? - skip reporting for detected bot requests - :bot-patterns - custom regex patterns for bot detection - :ignore-request? - custom predicate for filtering requests Also exports bot-request? function for use in application code. https://claude.ai/code/session_01BS2FMA4B8bCkPbcY5H3z2h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wrap-rollbarmiddleware now accepts an options map with::ignore-bots?- when true, skip reporting for detected bot requests:bot-patterns- custom regex patterns for bot detection (defaults to 50+ common bot patterns):ignore-request?- custom predicate function for filtering any requestsbot-request?function for use in application codeUsage
Test plan
Slack thread: https://opengb.slack.com/archives/C0A6EN75S9K/p1779727697072269?thread_ts=1779718632.861429&cid=C0A6EN75S9K
https://claude.ai/code/session_01BS2FMA4B8bCkPbcY5H3z2h
Generated by Claude Code