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

Configure production logs to go to appsignal. #1143

Merged
merged 2 commits into from
Oct 9, 2023
Merged

Configure production logs to go to appsignal. #1143

merged 2 commits into from
Oct 9, 2023

Conversation

jim
Copy link
Member

@jim jim commented Oct 9, 2023

What it does

  • Configures the production logs to log in a single-line format to appsignal

Why it is important

This will make our logs more searchable and also adds a user_id property so we can see what actions a given user takes. A few times now we've needed to understand a bug report from a user and didn't have this as a diagnostic tool.

Implementation notes

  • Added the lograge gem.
  • In production, configured logs to go to appsignal using the logfmt format.
  • The development logs and normal Rails logs that go to Heroku should remain unchanged.=

Your bandwidth for additional changes to this PR

  • I have the time and interest to make additional changes to this PR based on feedback.

@jim jim merged commit 103216c into main Oct 9, 2023
5 checks passed
@jim jim deleted the appsignal-logging branch October 9, 2023 15:40
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.

1 participant