devtoolsops

package
v1.27.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package devtoolsops contains the shared logic for toggling the lerd_devtools collector. Like the debug bridge, it is restart-free: the conf.d ini is always volume-mounted into every FPM container and active state is signalled by a sentinel file the extension stats per request, so toggling is a single filesystem touch that applies on the next PHP request without restarting any container or worker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkersResult

type WorkersResult struct {
	Workers  bool
	NoChange bool
}

WorkersResult reports the post-apply state of the worker-capture toggle.

func SetWorkers

func SetWorkers(enabled bool) (WorkersResult, error)

SetWorkers opts queue/scheduler worker queries into (or out of) capture by touching the workers sentinel and persisting the flag. Restart-free, same as the enable toggle. Long-running workers pick up the change when they next recycle (Horizon) or run (scheduler); a one-off restart isn't forced.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL