Skip to content

Add new option for the PHP SDK #811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 36 additions & 28 deletions src/collections/_documentation/platforms/php/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,39 @@ Integrations are configured by a call to `init()` method.

PHP provides some additional options, all options can be passed into `init()`.

#### send_attempts
#### capture_silenced_errors
{% include components/alert.html
content="This option was introduced in version 2.0.1"
level="notice"
%}
This option enables capturing errors which were silenced using the `@` operator
in your source code. Defaults to `false`.

The number of attempts that should be made to send an event before erroring
and dropping it from the queue.
By default this option is set to `6`.
#### context_lines

This option sets the number of lines of code context to capture. If `null` is
set as the value, no source code lines will be added to each stack trace frame.
By default this option is set to `3`.

#### enable_compression

If this option is enabled, `gzip` compression will be enabled. Default is `true`.

#### excluded_app_paths

This option configures the list of paths to exclude from the `app_path` detection.

#### excluded_exceptions

Sometimes you may want to skip capturing certain exceptions. This option sets
the FQCN of the classes of the exceptions that you don't want to capture. The
check is done using the `instanceof` operator against each item of the array
and if at least one of them passes the event will be discarded.

#### prefixes

This option sets the list of prefixes which should be stripped from the filenames
to create relative paths.

#### project_root

Expand All @@ -48,31 +76,11 @@ code".

```

#### enable_compression

If this option is enabled, `gzip` compression will be enabled. Default is `true`.

#### context_lines

This option sets the number of lines of code context to capture. If `null` is
set as the value, no source code lines will be added to each stack trace frame.
By default this option is set to `3`.

#### excluded_exceptions

Sometimes you may want to skip capturing certain exceptions. This option sets
the FQCN of the classes of the exceptions that you don't want to capture. The
check is done using the `instanceof` operator against each item of the array
and if at least one of them passes the event will be discarded.

#### excluded_app_paths

This option configures the list of paths to exclude from the `app_path` detection.

#### prefixes
#### send_attempts

This option sets the list of prefixes which should be stripped from the filenames
to create relative paths.
The number of attempts that should be made to send an event before erroring
and dropping it from the queue.
By default this option is set to `6`.

## Transport

Expand Down