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

feat(server): logging stack traces for db errors + allow async stack traces through env var #3819

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

fabis94
Copy link
Contributor

@fabis94 fabis94 commented Jan 14, 2025

note: judging from my testing we might not even need to enable async stack traces in prod, the stack trace still seems to provide a clue to which repo fn triggered the operation

Copy link

linear bot commented Jan 14, 2025

Copy link
Contributor

📸 Preview service has generated an image.

@@ -194,6 +194,9 @@ db:
## @param db.connectionCreationTimeoutMillis The maximum time in milliseconds to wait for a new connection to be created in the connection pool. Should be less than the acquisition timeout, as a new connection may need to be created then acquired.
##
connectionCreationTimeoutMillis: 5000
## @param db.knexAsyncStackTracesEnabled If enabled, will provide better stack traces for errors arising out of knex operations
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd nest this, like so:

    knexAsyncStackTraces:
         enabled: false

It allows us for more flexibility later, should we wish to append any more configuration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@iainsproat gergo already merged it, but in any case I'm not aware of any other configuration options relating to async stack traces

@gjedlicska gjedlicska merged commit 3351e09 into main Jan 14, 2025
28 of 30 checks passed
@gjedlicska gjedlicska deleted the fabians/web-2465 branch January 14, 2025 16:25
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.

3 participants