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

Add feature to ignore requests in logs/metrics #185

Merged
merged 1 commit into from
Jun 29, 2023
Merged

Conversation

bluekeyes
Copy link
Member

@bluekeyes bluekeyes commented Jun 28, 2023

We've had several requests to not log health check requests in apps built on baseapp (e.g. palantir/policy-bot#172) and in general, these logs do clutter the log output and make finding "real" requests more difficult. This is less of a problem with metrics, but health check requests are still likely to inflate request counts and alter latency distributions.

Instead of having some kind of complicated pattern-matching rule for paths, allow handlers to ignore requests on a per-request basis. For example, this means health check handlers could ignore all requests or only ignore successful requests.

We've had several requests to not log health check requests in apps
built on baseapp and in general, these logs do clutter the log output
and make finding "real" requests more difficult. This is less of a
problem with metrics, but health check requests are still likely to
inflate request counts and alter latency distributions.

Instead of having some kind of complicated pattern-matching rule for
paths, allow handlers to ignore requests on a per-request basis. For
example, this means health check handlers could ignore all requests or
only ignore successful requests.
@bluekeyes bluekeyes requested a review from a team June 28, 2023 16:55
Copy link
Member

@asvoboda asvoboda left a comment

Choose a reason for hiding this comment

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

Good call to create the ignore rules. I think the motivation is spot on that we'll want to ignore healthchecks (and other things?) from modifying our latencies.

@bluekeyes bluekeyes merged commit 8fcf9b4 into develop Jun 29, 2023
3 checks passed
@bluekeyes bluekeyes deleted the bkeyes/ignore branch June 29, 2023 16:56
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