You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can change the priority of the 3 default listeners of this bundle with the `listener_priorities` key of your config.
80
80
The default value is `0`, and here are the 3 possible sub-keys:
@@ -88,55 +88,51 @@ listener_priorities:
88
88
89
89
... respectively for the `onKernelRequest`, `onKernelException` and `onConsoleException` events.
90
90
91
-
#### Deprecated configuration options
91
+
### Options
92
92
93
-
In previous releases of this bundle, some of the previous options where set outside of the options level of the configuration file. Those still work but are deprecated, and they will be dropped in the 2.x release, so you are advised to abandon them; to provide forward compatibility, they can be used alongside the standard syntax, but values must match. This is a list of those options:
93
+
In the following section you will find some of the available options you can configure, listed alphabetically. All available options and a more detailed description of each can be found [here](https://docs.sentry.io/clients/php/config/), in the Sentry documentation.
94
+
95
+
#### app_path
96
+
97
+
The base path to your application. Used to trim prefixes and mark frames of the stack trace as part of your application.
94
98
95
99
```yaml
96
100
sentry:
97
-
app_path: ~
98
-
environment: ~
99
-
error_types: ~
100
-
prefixes: ~
101
-
release: ~
102
-
excluded_app_paths: ~
101
+
options:
102
+
app_path: "/path/to/myapp"
103
103
```
104
104
105
-
#### Options
106
-
107
-
In the following section you will find some of the available options you can configure. All available options and a more detailed description of each can be found [here](https://docs.sentry.io/clients/php/config/).
108
-
109
-
##### app_path
105
+
#### environment
110
106
111
-
The base path to your application. Used to trim prefixes and mark frames as part of your application.
107
+
The environment your code is running in (e.g. production).
112
108
113
109
```yaml
114
110
sentry:
115
111
options:
116
-
app_path: "/path/to/myapp"
112
+
environment: "%kernel.environment%"
117
113
```
118
114
119
-
##### environment
115
+
#### error types
120
116
121
-
The environment your code is running in (e.g. production).
117
+
Define which error types should be reported.
122
118
123
119
```yaml
124
120
sentry:
125
121
options:
126
-
environment: "%kernel.environment%"
122
+
error_types: E_ALL & ~E_DEPRECATED & ~E_NOTICE
127
123
```
128
124
129
-
##### release
125
+
#### exception_listener
130
126
131
-
The version of your application. Often this is the git sha.
127
+
This is used to replace the default exception listener that this bundle uses. The value must be a FQCN of a class implementing the SentryExceptionListenerInterface interface. See [Create a Custom ExceptionListener](#create-a-custom-exceptionlistener) for more details.
In previous releases of this bundle, up to 0.8.2, some of the previous options where set outside of the options level of the configuration file. Those still work but are deprecated, and they will be dropped in the stable 1.x release, so **you are advised to abandon them**; to provide forward compatibility, they can still be used alongside the standard syntax, but values must match. This is a list of those options:
171
+
172
+
```yaml
173
+
sentry:
174
+
app_path: ~
175
+
environment: ~
176
+
error_types: ~
177
+
excluded_app_paths: ~
178
+
prefixes: ~
179
+
release: ~
180
+
```
181
+
172
182
## Customization
173
183
174
-
It is possible to customize the configuration of the user context, as well
175
-
as modify the client immediately before an exception is captured by wiring
176
-
up an event subscriber to the events that are emitted by the default
177
-
configured `ExceptionListener` (alternatively, you can also just defined
178
-
your own custom exception listener).
184
+
It is possible to customize the configuration of the user context, as well as modify the client immediately before an exception is captured by wiring up an event subscriber to the events that are emitted by the default configured `ExceptionListener` (alternatively, you can also just define your own custom exception listener).
179
185
180
-
### Create a Custom ExceptionListener
186
+
### Create a custom ExceptionListener
181
187
182
-
You can always replace the default `ExceptionListener` with your own custom
183
-
listener. To do this, assign a different class to the `exception_listener`
184
-
property in your Sentry configuration, e.g.:
188
+
You can always replace the default `ExceptionListener` with your own custom listener. To do this, assign a different class to the `exception_listener` property in your Sentry configuration, e.g.:
0 commit comments