All Projects → helhum → sentry-typo3

helhum / sentry-typo3

Licence: other
TYPO3 Sentry integration

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to sentry-typo3

mask export
Export your mask elements as extension
Stars: ✭ 45 (+164.71%)
Mutual labels:  typo3
fullstack-nextjs-ecommerce
Fullstack Next.js E-Commerce made with NextAuth + Prisma, Docker + TypeScript + React Query + Stripe + Tailwind Sentry and much more 🛒
Stars: ✭ 524 (+2982.35%)
Mutual labels:  sentry
autoswitchtolistview
Auto switch to list view when a sysfolder is shown
Stars: ✭ 14 (-17.65%)
Mutual labels:  typo3
tailor
CLI Tool for maintaining public TYPO3 Extensions
Stars: ✭ 24 (+41.18%)
Mutual labels:  typo3
sentry-msteams
Microsoft Teams Integration for Sentry
Stars: ✭ 27 (+58.82%)
Mutual labels:  sentry
content defender
Define allowed or denied content element types in your backend layouts
Stars: ✭ 63 (+270.59%)
Mutual labels:  typo3
randomdata
TYPO3 extensions to generate new random data or replace existing data with random data
Stars: ✭ 14 (-17.65%)
Mutual labels:  typo3
backend debug
Debug support in TYPO3 backend
Stars: ✭ 20 (+17.65%)
Mutual labels:  typo3
logging
mod: zap logging in golang
Stars: ✭ 44 (+158.82%)
Mutual labels:  sentry
TYPO3 Restler
restler (PHP REST-Framework) for TYPO3
Stars: ✭ 29 (+70.59%)
Mutual labels:  typo3
typo3
The TYPO3 Core - Enterprise Content Management System. Synchronized mirror of https://review.typo3.org/q/project:Packages/TYPO3.CMS
Stars: ✭ 898 (+5182.35%)
Mutual labels:  typo3
aiohttp-sentry
An aiohttp server middleware for reporting failed requests to Sentry
Stars: ✭ 35 (+105.88%)
Mutual labels:  sentry
pink-lady
a template project of gin app.
Stars: ✭ 44 (+158.82%)
Mutual labels:  sentry
dkdeploy-typo3-cms
dkdeploy-typo3-cms provides functionality for fully automated deployments targeting TYPO3 CMS applications
Stars: ✭ 16 (-5.88%)
Mutual labels:  typo3
docker-compose-sentry
Docker Compose configuration for running a Sentry server.
Stars: ✭ 20 (+17.65%)
Mutual labels:  sentry
send-test-info
Attach unit test information to exceptions sent by Raven to Sentry
Stars: ✭ 17 (+0%)
Mutual labels:  sentry
micro-sentry
Tiny Sentry client with idiomatic wrapper for Angular
Stars: ✭ 100 (+488.24%)
Mutual labels:  sentry
typo3-secure-downloads
Secure your assets and data from unwanted download. Apply TYPO3 access rights to ALL file assets (PDFs, TGZs or JPGs etc. - configurable) - protect them from direct access.
Stars: ✭ 15 (-11.76%)
Mutual labels:  typo3
app
Buggregator is a beautiful, lightweight debug server build on Laravel that helps you catch your smpt, sentry, var-dump, monolog, ray outputs. It runs without installation on multiple platforms.
Stars: ✭ 259 (+1423.53%)
Mutual labels:  sentry
sentry-beaconfire
Kotlin based sentry android application
Stars: ✭ 35 (+105.88%)
Mutual labels:  sentry

Sentry TYPO3 Integration

Exception and error logging with Sentry, see http://www.getsentry.com

Sentry provides open-source and hosted error monitoring that helps all software teams discover, triage, and prioritize errors in real-time.

Sentry is available as SaaS including a free plan for developers or as download for self-hosting.

This package is a wrapper for https://github.com/getsentry/sentry-php

Installation

$ composer require helhum/sentry-typo3

Configuration

Set the dsn in your global configuration:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sentry']['dsn'] = 'http://public_key:[email protected]/project-id';

It is possible to change / add other Sentry options like this:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sentry'][<sentry option>];

Since the integration is purely done with log writers, make sure you add at least one writer. It is recommended to add a global writer as follows:

$GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'][\TYPO3\CMS\Core\Log\LogLevel::WARNING] = [
    \Helhum\SentryTypo3\Log\Writer\SentryWriter::class => [],
];

To get additional information for each error/warning logged, add the breadcrumb writer as well

$GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'][\TYPO3\CMS\Core\Log\LogLevel::WARNING] = [
    \Helhum\SentryTypo3\Log\Writer\SentryBreadcrumbWriter::class => [],
];

If you want to have different environments to filter by in Sentry, you can set them like this:

$GLOBALS['TYPO3_CONF_VARS']['SYS']['environment'] = 'development';

Where should I put the configuration?

This package expects settings to be exposed in main TYPO3 configuration (aka `TYPO3_CONF_VARS). How you expose it, totally depends on your use case, your deployment strategy and project structure.

This means: Put the configuration in either LocalConfiguration.php or AdditionalConfiguration.php depending on your needs and structure of your project.

How to test the connection to Sentry?

Navigate to a reachable page with a not configured page type like

http://your-typo3-site.de/index.php?id=1&type=1001

This triggers a ServiceUnavailableException which will be reported.

Improvements / Issues

This package is managed on GitHub. Feel free to get in touch at https://github.com/helhum/sentry-typo3

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].