@@ -11,9 +11,7 @@ Symfony integration for [Sentry](https://getsentry.com/).
1111
1212## Notice 3.0
1313> The current master branch contains the 3.0 version of this bundle, which is currently under development. This version
14- > will support the newest 2.0 version of the underlying Sentry SDK version.
15- >
16- > A beta version will be tagged as soon as possible, in the meantime you can continue to use the previous versions.
14+ > will support the newest 2.0 version of the underlying Sentry SDK version. A beta version is already available.
1715>
1816> To know more about the progress of this version see [ the relative milestone] ( https://github.com/getsentry/sentry-symfony/milestone/3 )
1917
@@ -22,22 +20,20 @@ Symfony integration for [Sentry](https://getsentry.com/).
2220Use sentry-symfony for:
2321
2422 * A fast sentry setup
25- * Access to the ` sentry.client ` through the container
23+ * Easy configuration in your Symfony app
2624 * Automatic wiring in your app. Each event has the following things added automatically to it:
2725 - user
2826 - Symfony environment
2927 - app path
30- - hostname
3128 - excluded paths (cache and vendor)
3229
33-
3430## Installation
3531
3632### Step 1: Download the Bundle
3733You can install this bundle using Composer:
3834
3935``` bash
40- composer require sentry/sentry-symfony:^3.0
36+ composer require sentry/sentry-symfony:^3.0-beta2
4137```
4238
4339#### Optional: use custom HTTP factory/transport
@@ -87,12 +83,13 @@ class AppKernel extends Kernel
8783 // ...
8884}
8985```
90- Note that, unlike before in version 3, the bundle will be enabled in all environments.
86+ Note that, unlike before in version 3, the bundle will be enabled in all environments; event reporting, instead, is enabled
87+ only when providing a DSN (see the next step).
9188
9289### Step 3: Configure the SDK
9390
94- Add your [ Sentry DSN] ( https://docs.sentry.io/quickstart/#configure-the-dsn ) value of your project to `` app/config/config .yml `` .
95- Leaving this value empty will effectively disable Sentry reporting.
91+ Add your [ Sentry DSN] ( https://docs.sentry.io/quickstart/#configure-the-dsn ) value of your project to `` app/config/config_prod .yml `` .
92+ Leaving this value empty (or undeclared) in other environments will effectively disable Sentry reporting.
9693
9794``` yaml
9895sentry :
@@ -112,9 +109,11 @@ TODO
112109## Customization
113110
114111The Sentry 2.0 SDK uses the Unified API, hence it uses the concept of ` Scope`s to hold information about the current
115- state of the app, and attach it to any event that is reported. This bundle has two listeners (`RequestListener` and
116- ` ConsoleListener` ) that adds some easy default information. Those listeners normally are executed with a priority of `1`
117- to allow easier customization with custom listener, that by default run with a lower priority of `0`.
112+ state of the app, and attach it to any event that is reported. This bundle has three listeners (`RequestListener`,
113+ ` SubRequestListener` and `ConsoleListener`) that adds some easy default information.
114+
115+ Those listeners normally are executed with a priority of `1` to allow easier customization with custom listener, that by
116+ default run with a lower priority of `0`.
118117
119118Those listeners are `final` so not extendable, but you can look at those to know how to add more information to the
120119current `Scope` and enrich you Sentry events.
0 commit comments