Skip to content

Trace rebuilds #2283

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

Merged
merged 5 commits into from
Oct 21, 2021
Merged

Trace rebuilds #2283

merged 5 commits into from
Oct 21, 2021

Conversation

pepeiborra
Copy link
Collaborator

@pepeiborra pepeiborra commented Oct 19, 2021

Add more tracing to investigate module rebuilds and key dirtiness

@pepeiborra pepeiborra added the merge me Label to trigger pull request merge label Oct 19, 2021
Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

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

lgtm, thanks

@@ -239,8 +239,8 @@ stderrLogger logLevel = do
telemetryLogger :: IO Logger
telemetryLogger
| userTracingEnabled = return $ Logger $ \p m ->
Copy link
Collaborator

Choose a reason for hiding this comment

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

withEventTrace also contains this guard. You could remove it; but that would change this from a single check of userTracingEnabled to create a no-op Logger to a check of userTracingEnabled on every step. Not sure if that's bad, but probably worth a comment to make it clear it's a deliberate decision if so.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good shout, I'll add a comment

as pointed out by @michaelpj the check is already installed in withTracing

the logger should not make any assumptions regarding user tracing being static anyway
@mergify mergify bot merged commit f3cdf09 into master Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants