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

Add instrumentation #167

Merged
merged 4 commits into from
Dec 5, 2023
Merged

Add instrumentation #167

merged 4 commits into from
Dec 5, 2023

Conversation

ardecvz
Copy link
Contributor

@ardecvz ardecvz commented Dec 2, 2023

Type of PR (feature, enhancement, bug fix, etc.)

Feature

Description

Add a new configuration option Futurism.instrumentation.
When enabled, ActiveSupport notification event render.futurism is emitted on render calls.

Additionally, delay the initialization of the logger until the Rails application's logger is initialized and enhance the handling of configuration options to handle blank ENV values.

Why should this be added

This is useful for performance monitoring, specifically for tracking the source of futurize calls.

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing

@julianrubisch
Copy link
Contributor

Thank you for this thorough implementation, it looks very interesting! I'll dive into it later this weekend

@julianrubisch julianrubisch merged commit 9dc90a4 into stimulusreflex:master Dec 5, 2023
11 checks passed
@julianrubisch
Copy link
Contributor

Released in 1.3.0!

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.

2 participants