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.
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 34
__construct(Container $container)
Create a new feature instance.
at line 42
abstract bool
isApplicable()
Indicate if the feature is applicable to the current environment.
at line 47
void
register()
Register the feature in the environment.
at line 55
void
onBoot()
Set up the feature in the environment.
at line 63
void
onBootInactive()
Set up the feature in the environment in an inactive state (when no DSN was set).
at line 70
void
boot()
Initialize the feature.
at line 80
void
bootInactive()
Initialize the feature in an inactive state (when no DSN was set).
at line 90
protected array
getUserConfig()
Retrieve the user configuration.
at line 98
protected bool
shouldSendDefaultPii()
Determine if default PII should be sent.
at line 112
protected bool
isTracingFeatureEnabled(string $feature, bool $default = true)
Indicate if the given feature is enabled for tracing.
at line 125
protected bool
isBreadcrumbFeatureEnabled(string $feature, bool $default = true)
Indicate if the given feature is enabled for breadcrumbs.
at line 148
protected bool
canRecordSpans()
Determine if the active SDK client can record spans.
at line 162
protected bool
canRecordBreadcrumbs()
Determine if the active SDK client can record breadcrumbs.