-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: instrument wordpress plugins' callbacks on demand (#799)
Improve agent's performance by adding two new toggles around WordPress instrumentation: - `newrelic.framework.wordpress.plugins` - indicates if WordPress hooks callback functions, implemented in WordPress core, plugins and themes, are to be instrumented. - `newrelic.framework.wordpress.hooks_threshold` - sets the WordPress hook's execution duration threshold above which the hook execution will be captured; used when WordPress hooks callback functions are not instrumented. By default, WordPress hooks callback functions are not instrumented and `newrelic.framework.wordpress.hooks_threshold` is set at 1ms. This allows to identify which hooks take up most time during request processing. If more details are needed, i.e. which plugins are the slowest, `newrelic.framework.wordpress.plugins` need to be set to `true`.
- Loading branch information
Showing
7 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
/*INI | ||
newrelic.framework = wordpress | ||
newrelic.framework.wordpress.hooks_threshold = 0 | ||
*/ | ||
|
||
/*EXPECT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
/*INI | ||
newrelic.framework = wordpress | ||
newrelic.framework.wordpress.hooks_threshold = 0 | ||
*/ | ||
|
||
/*EXPECT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters