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
The current version of ZendSentry for ZF2 is `2.4.0`. It supports Zend Framework >= 2.5.3. For older versions see the legacy branch and tags in the `1.*` series. For ZF3 compatible versions, please install releases in the `3.*` branch.
7
+
The current version of ZendSentry for ZF3 is `3.5.0`. It supports Zend Framework >= 3.0. For other versions see tags in the 1.* series as well as 2.* series. **NB!** We are not supporting the old branches anymore.
11
8
12
-
# Important Changes
9
+
# Recent Changes
10
+
- 3.5.0: Add support for new Sentry DSN, deprecate old DSN for later removal
11
+
- 3.4.0: Add possibility to switch off usage of raven-js CDN
13
12
- 3.3.0: Add possibility to pass config options to ravenjs
14
-
- 3.2.0 and 2.4.0: Upgrade dependencies to `sentry/sentry` 1.7.0 and `ravenjs` 3.17.0
15
-
- 3.0.1: ViewHelper fix
16
-
- 3.0.0: First ZF2 release with latest sentry SDK dependencies and ZF3 compatibility fixes
17
-
- 2.2.1: Fix: Only detach HttpExceptionStrategy if it exists
18
-
- 2.0.0: New major version for ZF >=2.5.3
19
-
- 1.5.2: Configurable error messages
20
-
- 1.4.0: Raven configuration can now be overwritten through ZendSentry configuration if needed
21
-
- 1.2.0: supports tags, every logging action returns the Sentry event_id, Raven is registered as Service
22
-
- 0.3.1: dedicated CLI ExceptionStrategy (credits to Mateusz Mirosławski)
23
13
24
14
# Introduction
25
15
@@ -28,10 +18,11 @@ The current version of ZendSentry for ZF2 is `2.4.0`. It supports Zend Framework
28
18
exceptions and errors. Sentry creates nice reports in real time and aggregates your logged data for you.
29
19
30
20
## What's ZendSentry
31
-
It is a module that builds the bridge between your Zend Framework 2 application and the Sentry service. It's extremely
21
+
It is a module that builds the bridge between your Zend Framework 3 application and the Sentry.io service. It's extremely
32
22
easy to setup and does a lot of things out-of-the-box.
33
23
34
-
Current features:
24
+
Features and capabilities:
25
+
35
26
* log uncatched PHP exceptions to Sentry automagically
36
27
* log PHP errors to Sentry automagically
37
28
* log uncatched Javascript errors to Sentry automagically
@@ -41,7 +32,8 @@ Current features:
41
32
* log actions return the Sentry event_id
42
33
* Raven is registered as a Service
43
34
* override Raven config defaults
44
-
* set ravenjs options via config
35
+
* pass config options to ravenjs
36
+
* configure error messages
45
37
46
38
# Installation
47
39
@@ -50,7 +42,7 @@ In your project's `composer.json` use:
50
42
51
43
{
52
44
"require": {
53
-
"cloud-solutions/zend-sentry": "2.4.0"
45
+
"cloud-solutions/zend-sentry": "3.5.0"
54
46
}
55
47
56
48
Run `php composer.phar update` to download it into your vendor folder and setup autoloading.
@@ -150,11 +142,11 @@ You might want to do something like this e.g. in your `AbstractActionController:
150
142
$ravenClient->tags_context(
151
143
[
152
144
'locale' => $this->translator()->getLocale(),
153
-
...
154
145
]
155
146
);
156
147
}
157
148
149
+
158
150
# Configuration options
159
151
160
152
Just for the record, a copy of the actual global configuration options:
@@ -221,10 +213,22 @@ Just for the record, a copy of the actual global configuration options:
221
213
'handle-javascript-errors' => true,
222
214
223
215
/**
224
-
* Set raven config options here.
216
+
* Should ZendSentry load raven-js via CDN?
217
+
* If you set this to false you'll need to make sure to load raven-js some other way.
218
+
*/
219
+
'use-ravenjs-cdn' => true,
220
+
221
+
/**
222
+
* Set raven config options for the getsentry/sentry-php package here.
225
223
* Raven has sensible defaults set in Raven_Client, if you need to override them, this is where you can do it.
226
224
*/
227
225
'raven-config' => array(),
226
+
227
+
/**
228
+
* Set ravenjs config options for the getsentry/raven-js package here.
229
+
* This will be json encoded and passed to raven-js when doing Raven.install().
230
+
*/
231
+
'ravenjs-config' => array(),
228
232
229
233
# Try it
230
234
A few ideas how to try the different features from a Controller or View:
0 commit comments