networkteam / sentryclient
A sentry client for the Flow framework
Installs: 118 401
Dependents: 2
Suggesters: 0
Security: 0
Stars: 9
Watchers: 8
Forks: 15
Open Issues: 7
Type:neos-package
Requires
- php: ~7.1 || ~8.0
- jenssegers/agent: ^2.6
- neos/flow: >=7.3.6
- sentry/sdk: ^2.2 || ^3.0
- dev-master
- 6.4.0
- 6.3.0
- 6.2.0-beta1
- 6.1.0
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.1.0
- 5.0.2
- 5.0.1
- 5.0.0
- 4.x-dev
- 4.2.0
- 4.1.0
- 4.1-BETA
- 4.0.2
- 4.0.1
- 4.0.0
- 3.x-dev
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.x-dev
- 2.0.1
- 2.0.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-46-deactivate-sentry-errorlistenerintegration
- dev-ignore-hmac-exception
- dev-log-event-id
- dev-prevent-reporting-twice
- dev-add-exception-blacklist
- dev-feature-add-browser-and-plattform-info
- dev-feature-remove-neos-fusion-dependency
- dev-improved-logging
This package is auto-updated.
Last update: 2024-11-23 07:49:04 UTC
README
This is a Sentry client package for the Flow framework. If you want to use this package with Neos CMS please use Networkteam.Neos.SentryClient instead.
It's based on https://github.com/getsentry/sentry-php.
Have a look at https://sentry.io for more information about Sentry.
Installation:
$ composer require networkteam/sentryclient
Compatibility table for the sentry client
There was a failure in the versioning scheme for the client from 1.0.3 on. This is fixed with the 2.x and 3.x versions.
Configuration:
Add the following to your Settings.yaml
and replace the dsn
setting with your project DSN (API Keys in your Sentry project):
Networkteam:
SentryClient:
# The Sentry DSN
dsn: 'http://secret_key@your-sentry-server.com/project-id'
You can implement the \Networkteam\SentryClient\User\UserContextServiceInterface
to pass your own user context
information to the logging. If you do not have the Neos.Party Package and don't want to implement your own
UserContextService
you need to set the \Networkteam\SentryClient\User\DummyUserContext
in the Objects.yaml like
Networkteam\SentryClient\User\UserContextServiceInterface:
className: Networkteam\SentryClient\User\DummyUserContext
This will prevent any collection of user information except information that is available via the Flow SecurityContext.
Release tracking:
A Release can be passed to the Sentry client with the environment variable FLOW_RELEASE
or by setting the value
in a Settings.yaml
:
Networkteam:
SentryClient:
release: '1.2.3-alpha1'
Usage:
Sentry will log all exceptions that have the rendering option logException
enabled. This can be enabled or disabled
by status code or exception class according to the Flow configuration.
Development:
This package is managed on GitHub. Feel free to get in touch at https://github.com/networkteam/Networkteam.SentryClient.
License:
See the LICENSE file for license rights and limitations (MIT).