Feature
abstract class Feature
Methods
Indicate if the feature is applicable to the current environment.
Register the feature in the environment.
Set up the feature in the environment.
Set up the feature in the environment in an inactive state (when no DSN was set).
Initialize the feature.
Initialize the feature in an inactive state (when no DSN was set).
Retrieve the user configuration.
Determine if default PII should be sent.
Determine whether AI inputs may be collected.
Determine whether AI outputs may be collected.
Indicate if the given feature is enabled for tracing.
Indicate if the given feature is enabled for breadcrumbs.
Determine if the active SDK client can record spans.
Determine if the active SDK client can record breadcrumbs.
Details
at line 35
__construct(Container $container)
Create a new feature instance.
at line 43
abstract bool
isApplicable()
Indicate if the feature is applicable to the current environment.
at line 48
void
register()
Register the feature in the environment.
at line 56
void
onBoot()
Set up the feature in the environment.
at line 64
void
onBootInactive()
Set up the feature in the environment in an inactive state (when no DSN was set).
at line 71
void
boot()
Initialize the feature.
at line 81
void
bootInactive()
Initialize the feature in an inactive state (when no DSN was set).
at line 91
protected array
getUserConfig()
Retrieve the user configuration.
at line 99
protected bool
shouldSendDefaultPii()
Determine if default PII should be sent.
at line 113
protected bool
shouldCollectGenAiInputs()
Determine whether AI inputs may be collected.
at line 121
protected bool
shouldCollectGenAiOutputs()
Determine whether AI outputs may be collected.
at line 146
protected bool
isTracingFeatureEnabled(string $feature, bool $default = true)
Indicate if the given feature is enabled for tracing.
at line 159
protected bool
isBreadcrumbFeatureEnabled(string $feature, bool $default = true)
Indicate if the given feature is enabled for breadcrumbs.
at line 182
protected bool
canRecordSpans()
Determine if the active SDK client can record spans.
at line 196
protected bool
canRecordBreadcrumbs()
Determine if the active SDK client can record breadcrumbs.