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

Improve Sentry Error Logging with Enhanced Context and Stack Traces #438

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sundayonah
Copy link
Collaborator

@sundayonah sundayonah commented Mar 18, 2025

Description

This PR enhances our logging system to better capture parameters and stack traces in Sentry, making it significantly easier to debug issues in production and staging environments. Currently, our Sentry logs lack sufficient context and properly captured stack traces, which makes troubleshooting production issues challenging and time-consuming.

References

Testing

  • Run the unit tests with go test ./logger -v
  • Verify in the Sentry dashboard that errors include proper stack traces and context

Checklist

  • I have added documentation and tests for new/changed functionality in this PR
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not main

By submitting a PR, I agree to Paycrest's Contributor Code of Conduct and Contribution Guide.

Sorry, something went wrong.

@sundayonah sundayonah requested review from chibie and 5ran6 as code owners March 18, 2025 15:25
@sundayonah sundayonah marked this pull request as draft March 18, 2025 15:25
@sundayonah sundayonah marked this pull request as ready for review March 19, 2025 08:50
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.

Improve Sentry Implementation for Better Parameter and Stack Trace Handling
1 participant