final class InstrumentationOptions

Methods

__construct(array $values)

Create an immutable instrumentation option view.

mixed
get(string $key)

Get an option value.

bool
enabled(string $key)

Determine whether a boolean option is enabled.

bool
metricEnabled(string $name)

Determine whether a metric is enabled.

Details

at line 14
__construct(array $values)

Create an immutable instrumentation option view.

Parameters

array $values

at line 21
mixed get(string $key)

Get an option value.

Parameters

string $key

Return Value

mixed

at line 29
bool enabled(string $key)

Determine whether a boolean option is enabled.

Parameters

string $key

Return Value

bool

at line 37
bool metricEnabled(string $name)

Determine whether a metric is enabled.

Parameters

string $name

Return Value

bool