Skip to content

Commit 4ac92c0

Browse files
Jean85untitaker
authored andcommitted
Add new option for the PHP SDK (#811)
* Sort PHP Specific Options alphabetically * Add info about capture_silenced_errors
1 parent fb4f681 commit 4ac92c0

File tree

1 file changed

+36
-28
lines changed
  • src/collections/_documentation/platforms/php

1 file changed

+36
-28
lines changed

src/collections/_documentation/platforms/php/index.md

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,39 @@ Integrations are configured by a call to `init()` method.
2121

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

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

26-
The number of attempts that should be made to send an event before erroring
27-
and dropping it from the queue.
28-
By default this option is set to `6`.
32+
#### context_lines
33+
34+
This option sets the number of lines of code context to capture. If `null` is
35+
set as the value, no source code lines will be added to each stack trace frame.
36+
By default this option is set to `3`.
37+
38+
#### enable_compression
39+
40+
If this option is enabled, `gzip` compression will be enabled. Default is `true`.
41+
42+
#### excluded_app_paths
43+
44+
This option configures the list of paths to exclude from the `app_path` detection.
45+
46+
#### excluded_exceptions
47+
48+
Sometimes you may want to skip capturing certain exceptions. This option sets
49+
the FQCN of the classes of the exceptions that you don't want to capture. The
50+
check is done using the `instanceof` operator against each item of the array
51+
and if at least one of them passes the event will be discarded.
52+
53+
#### prefixes
54+
55+
This option sets the list of prefixes which should be stripped from the filenames
56+
to create relative paths.
2957

3058
#### project_root
3159

@@ -48,31 +76,11 @@ code".
4876
4977
```
5078

51-
#### enable_compression
52-
53-
If this option is enabled, `gzip` compression will be enabled. Default is `true`.
54-
55-
#### context_lines
56-
57-
This option sets the number of lines of code context to capture. If `null` is
58-
set as the value, no source code lines will be added to each stack trace frame.
59-
By default this option is set to `3`.
60-
61-
#### excluded_exceptions
62-
63-
Sometimes you may want to skip capturing certain exceptions. This option sets
64-
the FQCN of the classes of the exceptions that you don't want to capture. The
65-
check is done using the `instanceof` operator against each item of the array
66-
and if at least one of them passes the event will be discarded.
67-
68-
#### excluded_app_paths
69-
70-
This option configures the list of paths to exclude from the `app_path` detection.
71-
72-
#### prefixes
79+
#### send_attempts
7380

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

7785
## Transport
7886

0 commit comments

Comments
 (0)