Skip to content

fix: gate goblin logs before formatting#3238

Open
supervacuus wants to merge 2 commits intogetsentry:masterfrom
supervacuus:fix/goblin-logging-perf
Open

fix: gate goblin logs before formatting#3238
supervacuus wants to merge 2 commits intogetsentry:masterfrom
supervacuus:fix/goblin-logging-perf

Conversation

@supervacuus
Copy link

Description

As evaluated in the context of #3237, in some configurations, just formatting the goblin logs can be costly enough to become a performance issue.

This PR moves the logging gate for goblin into enabled() so that we discard its logs before we format them.

Issues

Raised as part of the fixes for getsentry/sentry#104738

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@supervacuus supervacuus requested review from a team and szokeasaurusrex as code owners March 24, 2026 18:02
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