Integration
class Integration extends Feature
Constants
| private FEATURE_KEY |
|
| private STORAGE_DRIVER_NAME |
|
Methods
Indicate if the feature is applicable to the current environment.
Register the Sentry filesystem driver.
Set up the feature in the environment in an inactive state (when no DSN was set).
Indicate if the given feature is enabled for tracing.
Indicate if the given feature is enabled for breadcrumbs.
Decorate the configuration for a single disk with Sentry driver configuration.
Decorate the configuration for all disks with Sentry driver configuration.
Details
at line 22
bool
isApplicable()
Indicate if the feature is applicable to the current environment.
at line 32
void
register()
Register the Sentry filesystem driver.
in
Feature at line 55
void
onBoot()
Set up the feature in the environment.
in
Feature at line 63
void
onBootInactive()
Set up the feature in the environment in an inactive state (when no DSN was set).
in
Feature at line 70
void
boot()
Initialize the feature.
in
Feature at line 80
void
bootInactive()
Initialize the feature in an inactive state (when no DSN was set).
in
Feature at line 90
protected array
getUserConfig()
Retrieve the user configuration.
in
Feature at line 98
protected bool
shouldSendDefaultPii()
Determine if default PII should be sent.
in
Feature at line 112
protected bool
isTracingFeatureEnabled(string $feature, bool $default = true)
Indicate if the given feature is enabled for tracing.
in
Feature at line 125
protected bool
isBreadcrumbFeatureEnabled(string $feature, bool $default = true)
Indicate if the given feature is enabled for breadcrumbs.
in
Feature at line 148
protected bool
canRecordSpans()
Determine if the active SDK client can record spans.
in
Feature at line 162
protected bool
canRecordBreadcrumbs()
Determine if the active SDK client can record breadcrumbs.
at line 115
static array
configureDisk(string $diskName, array $diskConfig, bool $enableSpans = true, bool $enableBreadcrumbs = true)
Decorate the configuration for a single disk with Sentry driver configuration.
This replaces the driver with a custom driver that will capture performance traces and breadcrumbs.
The custom driver will be an instance of SentryS3V3Adapter if the original driver is an AwsS3V3Adapter, and an instance of SentryFilesystemAdapter if the original driver is an FilesystemAdapter. If the original driver is neither of those, it will be SentryFilesystem or SentryCloudFilesystem based on the original contract.
You might run into problems if you expect another specific driver class.
at line 139
static array
configureDisks(array $diskConfigs, bool $enableSpans = true, bool $enableBreadcrumbs = true)
Decorate the configuration for all disks with Sentry driver configuration.