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

Disable conduit_log_requests in production #1349

Closed
wants to merge 1 commit into from

Conversation

sgrif
Copy link
Contributor

@sgrif sgrif commented Apr 13, 2018

Everything it outputs is redundant with heroku's router logging. We're
hitting our usage limits for log storage, so let's cut them down by
half.

Everything it outputs is redundant with heroku's router logging. We're
hitting our usage limits for log storage, so let's cut them down by
half.
@sgrif sgrif requested a review from ashleygwilliams April 13, 2018 19:12
@jtgeibel
Copy link
Member

I definitely support getting rid of the logging at this level since it includes a lot of redundant data when requests succeed. Before we can do that, I think we need to first add logging of error results elsewhere as there have been some recent issues where this log output helped identify the root cause:

I've added a commit to #1301 which will log any unexpected errors propagated up the middleware stack. Additionally it includes the request id provided by Heroku when the X-Request-ID header is present.

@sgrif
Copy link
Contributor Author

sgrif commented Apr 14, 2018

Heroku's built in logging includes both of those from what I can see.

@jtgeibel
Copy link
Member

For the log snippets included in those issues, the line provided by conduit_log_requests is the only one including the details of the error as far as I can see. I don't have access to the full logs so maybe I'm missing something.

@sgrif
Copy link
Contributor Author

sgrif commented Apr 14, 2018

Ironically I just got paged for a spike in error rates, and you're right, heroku's router doesn't have the response body. I'm just going to change our log level to error instead.

@sgrif sgrif closed this Apr 14, 2018
@sgrif sgrif deleted the sg-disable-conduit-log branch April 14, 2018 10:44
@jtgeibel
Copy link
Member

I'm just going to change our log level to error instead.

I'm not quite sure I follow. Are you saying production was using something like RUST_LOG=info before?

@sgrif
Copy link
Contributor Author

sgrif commented Apr 15, 2018 via email

@jtgeibel
Copy link
Member

Okay, makes sense. I've opened conduit-rust/conduit-log-requests#4 as I think including the request ID from Heroku would be the last advantage to adding our own logging middleware for catching unexpected errors.

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.

2 participants