Skip to content

fix: gate goblin logs before formatting#3238

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

fix: gate goblin logs before formatting#3238
supervacuus wants to merge 3 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
@supervacuus
Copy link
Author

@loewenheim, thx! Since Danger complains, does this justify an entry into the changelog?

@loewenheim loewenheim added the skip-changelog Apply this label to PRs that do not contain any user-facing changes label Mar 26, 2026
@loewenheim
Copy link
Contributor

@loewenheim, thx! Since Danger complains, does this justify an entry into the changelog?

No, I don't think so. I applied the label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Apply this label to PRs that do not contain any user-facing changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants