Skip to content

Do not call scoutapm_enable_instrumentation unless monitoring is enabled #275

@asgrim

Description

@asgrim

heroku/heroku-buildpack-php#390 (comment)

In responding to this query, I noticed that as soon as \Scoutapm\Extension\PotentiallyAvailableExtensionCapabilities is created, the scoutapm_enable_instrumentation(true); call is made, regardless of whether monitoring is enabled.

If monitoring is disabled (e.g. SCOUT_MONITOR=false) then the ext should NOT be enabled.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions