getsentry / sentry-symfony

The official Symfony SDK for Sentry (sentry.io)
https://sentry.io
MIT License
695 stars 170 forks source link

Api Platform Automatic Instrumentation not working #668

Closed joerndyherrn closed 1 year ago

joerndyherrn commented 2 years ago

Environment

alexacrm/dynamics-webapi-toolkit         2.7.1              Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM
alexacrm/strong-serializer               2.0                Converts generic objects to strongly-typed objects and vice-versa.
api-platform/core                        v2.6.8             Build a fully-featured hypermedia or GraphQL API in minutes!
aws/aws-crt-php                          v1.0.2             AWS Common Runtime for PHP
aws/aws-sdk-php                          3.226.0            AWS SDK for PHP - Use Amazon Web Services in your PHP project
beberlei/doctrineextensions              v1.3.0             A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL, Oracle, PostgreSQL and SQLite.
brick/math                               0.9.3              Arbitrary-precision arithmetic library
clue/stream-filter                       v1.6.0             A simple and modern approach to stream filtering in PHP
cocur/slugify                            v4.2.0             Converts a string into a slug.
composer/ca-bundle                       1.3.3              Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.
composer/pcre                            1.0.1              PCRE wrapping library that offers type-safe preg_* replacements.
composer/semver                          3.3.2              Semver library that offers utilities, version constraint parsing and validation.
composer/xdebug-handler                  2.0.5              Restarts a process without Xdebug.
container-interop/container-interop      1.2.0              Promoting the interoperability of container objects (DIC, SL, etc.)
danielstjules/stringy                    3.1.0              A string manipulation library with multibyte support
doctrine/annotations                     1.13.3             Docblock Annotations Parser
doctrine/cache                           2.2.0              PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.
doctrine/collections                     1.8.0              PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common                          3.4.2              PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, proxies and much more.
doctrine/data-fixtures                   1.5.3              Data Fixtures for all Doctrine Object Managers
doctrine/dbal                            2.13.9             Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations                    v0.5.3             A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.
doctrine/doctrine-bundle                 2.7.0              Symfony DoctrineBundle
doctrine/doctrine-migrations-bundle      3.2.2              Symfony DoctrineMigrationsBundle
doctrine/event-manager                   1.1.2              The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/inflector                       2.0.5              PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.
doctrine/instantiator                    1.4.1              A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer                           1.2.3              PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations                      3.4.2              PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a powerful tool.
doctrine/orm                             2.13.2             Object-Relational-Mapper for PHP
doctrine/persistence                     2.5.4              The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.
doctrine/sql-formatter                   1.1.3              a PHP SQL highlighting library
egulias/email-validator                  3.2.1              A library for validating emails against several RFCs
elao/enum                                v1.17.1            Enumerations for PHP and frameworks integrations
exsyst/swagger                           v0.4.2             A php library to manipulate Swagger specifications
fakerphp/faker                           v1.20.0            Faker is a PHP library that generates fake data for you.
fig/link-util                            1.1.2              Common utility implementations for HTTP links
firebase/php-jwt                         v4.0.0             A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.
friendsofphp/php-cs-fixer                v3.4.0             A tool to automatically fix PHP code style
friendsofphp/proxy-manager-lts           v1.0.12            Adding support for a wider range of PHP versions to ocramius/proxy-manager
friendsofsymfony/ckeditor-bundle         2.4.0              Provides a CKEditor integration for your Symfony project.
friendsofsymfony/user-bundle             v2.2.4             Symfony FOSUserBundle
gfreeau/get-jwt-bundle                   2.0.2              This Symfony2 bundle provides a security listener to return a JWT
gmostafa/php-graphql-client              v1.13              GraphQL client and query builder.
gumlet/php-image-resize                  1.9.2              PHP class to re-size and scale images
guzzlehttp/guzzle                        6.5.0              Guzzle is a PHP HTTP client library
guzzlehttp/promises                      1.5.2              Guzzle promises library
guzzlehttp/psr7                          1.9.0              PSR-7 message implementation that also provides common utility methods
hautelook/alice-bundle                   2.9.0              Symfony bundle to manage fixtures with Alice and Faker.
http-interop/http-factory-guzzle         1.2.0              An HTTP Factory using Guzzle PSR7
hwi/oauth-bundle                         1.4.5              Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony2.
icecave/parity                           3.0.1              A customizable deep comparison library.
icecave/repr                             4.0.0              A library for generating string representations of any value, inspired by Python's reprlib library.
imagine/imagine                          1.2.3              Image processing for PHP 5.3
incenteev/composer-parameter-handler     v2.1.5             Composer script handling your ignored parameter file
jean85/pretty-package-versions           2.0.5              A library to get pretty versions strings of installed dependencies
jms/metadata                             2.7.0              Class/method/property metadata management in PHP
jms/serializer                           3.18.2             Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.
justinrainbow/json-schema                5.2.12             A library to validate a json schema.
knplabs/doctrine-behaviors               2.2.0              Doctrine Behavior Traits
knplabs/gaufrette                        v0.10.0            PHP library that provides a filesystem abstraction layer
knplabs/knp-gaufrette-bundle             v0.7.2             Allows to easily use the Gaufrette library in a Symfony project
knplabs/knp-menu                         v3.3.0             An object oriented menu library
knplabs/knp-menu-bundle                  v3.2.0             This bundle provides an integration of the KnpMenu library
knplabs/knp-snappy                       v1.4.1             PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.
knplabs/knp-snappy-bundle                v1.9.0             Easily create PDF and images in Symfony by converting Twig/HTML templates.
laminas/laminas-code                     3.4.1              Extensions to the PHP Reflection API, static code scanning, and code generation
laminas/laminas-eventmanager             3.5.0              Trigger and listen to events within a PHP application
laminas/laminas-zendframework-bridge     1.6.1              Alias legacy ZF class names to Laminas Project equivalents.
lcobucci/clock                           2.0.0              Yet another clock abstraction
lcobucci/jwt                             4.2.1              A simple library to work with JSON Web Token and JSON Web Signature
lexik/jwt-authentication-bundle          v2.16.0            This bundle provides JWT authentication for your Symfony REST API
metaclass-nl/filter-bundle               dev-master d8c6d7c Filter bundle for API Platform, Filter Logic
microsoft/azure-storage                  v0.19.1            This project provides a set of PHP client libraries that make it easy to access Microsoft Azure storage APIs.
microsoft/microsoft-graph                1.77.0             The Microsoft Graph SDK for PHP
microsoft/windowsazure                   v0.5.7             This project provides a set of PHP client libraries that make it easy to access Windows Azure tables, blobs, queues, service runtime and service management APIs.
monolog/monolog                          2.8.0              Sends your logs to files, sockets, inboxes, databases and various web services
mtdowling/jmespath.php                   2.6.1              Declaratively specify how to extract elements from a JSON document
myclabs/deep-copy                        1.11.0             Create deep copies (clones) of your objects
namshi/jose                              7.2.3              JSON Object Signing and Encryption library for PHP.
nelmio/alice                             v3.9.0             Expressive fixtures generator
nelmio/api-doc-bundle                    v3.10.1            Generates documentation for your REST API from annotations
nelmio/cors-bundle                       2.2.0              Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application
nelmio/security-bundle                   v2.12.0            Extra security-related features for Symfony: signed/encrypted cookies, HTTPS/SSL/HSTS handling, cookie session storage, ...
nette/utils                              v3.2.8             🛠  Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
nikic/php-parser                         v4.15.1            A PHP parser written in PHP
nyholm/psr7                              1.5.1              A fast PHP7 implementation of PSR-7
paragonie/random_compat                  v9.99.100          PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
pear/console_getopt                      v1.4.3             More info available on: http://pear.php.net/package/Console_Getopt
pear/mail_mime                           1.10.11            Mail_Mime provides classes to create MIME messages
pear/net_url2                            v2.2.2             Class for parsing and handling URL. Provides parsing of URLs into their constituent parts (scheme, host, path etc.), URL generation, and resolving of relative URLs.
pear/pear-core-minimal                   v1.10.11           Minimal set of PEAR core files to be used as composer dependency
pear/pear_exception                      v1.0.2             The PEAR Exception base class.
php-cs-fixer/diff                        v2.0.2             sebastian/diff v3 backport support for PHP 5.6+
php-http/client-common                   2.6.0              Common HTTP Client implementations and tools for HTTPlug
php-http/discovery                       1.14.3             Finds installed HTTPlug implementations and PSR-7 message factories
php-http/httplug                         2.3.0              HTTPlug, the HTTP client abstraction for PHP
php-http/httplug-bundle                  1.27.0             Symfony integration for HTTPlug
php-http/logger-plugin                   1.3.0              PSR-3 Logger plugin for HTTPlug
php-http/message                         1.13.0             HTTP Message related tools
php-http/message-factory                 v1.0.2             Factory interfaces for PSR-7 HTTP Message
php-http/promise                         1.1.0              Promise used for asynchronous HTTP requests
php-http/stopwatch-plugin                1.4.1              Symfony Stopwatch plugin for HTTPlug
phpdocumentor/reflection-common          2.2.0              Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock        5.3.0              With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.
phpdocumentor/type-resolver              1.6.1              A PSR-5 based resolver of Class names, Types and Structural Element Names
phpro/soap-client                        v1.7.4             A general purpose SoapClient library
phpstan/phpdoc-parser                    1.8.0              PHPDoc parser with support for nullable, intersection and generic types
phpstan/phpstan                          0.12.99            PHPStan - PHP Static Analysis Tool
psr/cache                                1.0.1              Common interface for caching libraries
psr/container                            1.1.2              Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher                     1.0.0              Standard interfaces for event handling.
psr/http-client                          1.0.1              Common interface for HTTP clients
psr/http-factory                         1.0.1              Common interfaces for PSR-7 HTTP message factories
psr/http-message                         1.0.1              Common interface for HTTP messages
psr/link                                 1.0.0              Common interfaces for HTTP links
psr/log                                  1.1.4              Common interface for logging libraries
psr/simple-cache                         1.0.1              Common interfaces for simple caching
ralouphie/getallheaders                  3.0.3              A polyfill for getallheaders.
ramsey/collection                        1.2.2              A PHP library for representing and manipulating collections.
ramsey/uuid                              4.2.3              A PHP library for generating and working with universally unique identifiers (UUIDs).
ramsey/uuid-doctrine                     1.8.1              Use ramsey/uuid as a Doctrine field type.
sebastian/comparator                     4.0.8              Provides the functionality to compare PHP values for equality
sebastian/diff                           4.0.4              Diff implementation
sebastian/exporter                       4.0.5              Provides the functionality to export PHP variables for visualization
sebastian/recursion-context              4.0.4              Provides functionality to recursively process PHP variables
sensio/framework-extra-bundle            v5.6.1             This bundle provides a way to configure your controllers with annotations
sentry/sdk                               3.3.0              This is a metapackage shipping sentry/sentry with a recommended HTTP client.
sentry/sentry                            3.11.0             A PHP SDK for Sentry (http://sentry.io)
sentry/sentry-symfony                    4.4.0              Symfony integration for Sentry (http://getsentry.com)
setasign/fpdf                            1.8.4              FPDF is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.
setasign/fpdi                            v2.3.6             FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. Because it is also possible to use FPDI with TCPDF, there are no fixed dependencies defined. Please see sugges...
snilius/twig-sort-by-field               v0.1.5             A Twig Extension filter to sort an array of entries (objects or arrays) by the specified field
sonata-project/admin-bundle              3.107.3            The missing Symfony Admin Generator
sonata-project/block-bundle              3.23.3             Symfony SonataBlockBundle
sonata-project/cache                     2.2.0              Cache library
sonata-project/datagrid-bundle           3.5.0              Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.18.1             Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.35.3             Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/exporter                  2.13.0             Lightweight Exporter library
sonata-project/form-extensions           1.18.0             Symfony form extensions
sonata-project/translation-bundle        2.10.1             SonataTranslationBundle
sonata-project/twig-extensions           1.12.0             Sonata twig extensions
sonata-project/user-bundle               4.15.0             Symfony SonataUserBundle
swiftmailer/swiftmailer                  v6.3.0             Swiftmailer, free feature-rich PHP mailer
symfony/apache-pack                      v1.0.1             A pack for Apache support in Symfony
symfony/asset                            v5.4.13            Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files
symfony/browser-kit                      v4.4.44            Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically
symfony/cache                            v5.4.13            Provides extended PSR-6, PSR-16 (and tags) implementations
symfony/cache-contracts                  v2.5.2             Generic abstractions related to caching
symfony/config                           v4.4.44            Helps you find, load, combine, autofill and validate configuration values of any kind
symfony/console                          v4.4.47            Eases the creation of beautiful and testable command line interfaces
symfony/css-selector                     v4.4.44            Converts CSS selectors to XPath expressions
symfony/debug                            v4.4.44            Provides tools to ease debugging PHP code
symfony/debug-bundle                     v4.4.37            Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework
symfony/dependency-injection             v4.4.44            Allows you to standardize and centralize the way objects are constructed in your application
symfony/deprecation-contracts            v2.5.2             A generic function and convention to trigger deprecation notices
symfony/doctrine-bridge                  v4.4.46            Provides integration for Doctrine with various Symfony components
symfony/dom-crawler                      v5.4.12            Eases DOM navigation for HTML and XML documents
symfony/dotenv                           v4.4.37            Registers environment variables from a .env file
symfony/error-handler                    v4.4.44            Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher                 v4.4.44            Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts       v1.1.13            Generic abstractions related to dispatching event
symfony/expression-language              v4.4.44            Provides an engine that can compile and evaluate expressions
symfony/filesystem                       v5.4.13            Provides basic utilities for the filesystem
symfony/finder                           v5.4.11            Finds files and directories via an intuitive fluent interface
symfony/flex                             v1.19.3            Composer plugin for Symfony
symfony/form                             v4.4.46            Allows to easily create, process and reuse HTML forms
symfony/framework-bundle                 v4.4.46            Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/http-client                      v4.4.47            Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/http-client-contracts            v2.5.2             Generic abstractions related to HTTP clients
symfony/http-foundation                  v5.4.14            Defines an object-oriented layer for the HTTP specification
symfony/http-kernel                      v4.4.47            Provides a structured process for converting a Request into a Response
symfony/intl                             v5.4.11            Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU library
symfony/mailer                           v5.4.13            Helps sending emails
symfony/maker-bundle                     v1.39.1            Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.
symfony/mime                             v5.4.13            Allows manipulating MIME messages
symfony/monolog-bridge                   v5.2.12            Provides integration for Monolog with various Symfony components
symfony/monolog-bundle                   v3.8.0             Symfony MonologBundle
symfony/options-resolver                 v5.4.11            Provides an improved replacement for the array_replace PHP function
symfony/phpunit-bridge                   v4.4.44            Provides utilities for PHPUnit, especially user deprecation notices management
symfony/polyfill-ctype                   v1.26.0            Symfony polyfill for ctype functions
symfony/polyfill-intl-grapheme           v1.26.0            Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-idn                v1.26.0            Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer         v1.26.0            Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring                v1.26.0            Symfony polyfill for the Mbstring extension
symfony/polyfill-php72                   v1.26.0            Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php73                   v1.26.0            Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/polyfill-php80                   v1.26.0            Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php81                   v1.26.0            Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
symfony/process                          v5.4.11            Executes commands in sub-processes
symfony/property-access                  v5.4.11            Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info                    v5.4.11            Extracts information about PHP class' properties using metadata of popular sources
symfony/proxy-manager-bridge             v4.4.39            Provides integration for ProxyManager with various Symfony components
symfony/psr-http-message-bridge          v2.1.3             PSR HTTP message bridge
symfony/routing                          v4.4.44            Maps an HTTP request to a set of configuration variables
symfony/security-acl                     v3.3.2             Symfony Security Component - ACL (Access Control List)
symfony/security-bundle                  v4.4.44            Provides a tight integration of the Security component into the Symfony full-stack framework
symfony/security-core                    v4.4.47            Symfony Security Component - Core Library
symfony/security-csrf                    v5.4.11            Symfony Security Component - CSRF Library
symfony/security-guard                   v4.4.46            Symfony Security Component - Guard
symfony/security-http                    v4.4.44            Symfony Security Component - HTTP Integration
symfony/serializer                       v5.4.13            Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
symfony/service-contracts                v2.5.2             Generic abstractions related to writing services
symfony/stopwatch                        v4.4.46            Provides a way to profile code
symfony/string                           v5.4.13            Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/swiftmailer-bundle               v3.5.4             Symfony SwiftmailerBundle
symfony/templating                       v4.4.44            Provides all the tools needed to build any kind of template system
symfony/translation                      v4.4.45            Provides tools to internationalize your application
symfony/translation-contracts            v2.5.2             Generic abstractions related to translation
symfony/twig-bridge                      v4.4.45            Provides integration for Twig with various Symfony components
symfony/twig-bundle                      v4.4.41            Provides a tight integration of Twig into the Symfony full-stack framework
symfony/validator                        v4.4.46            Provides tools to validate values
symfony/var-dumper                       v4.4.47            Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter                     v5.4.10            Allows exporting any serializable PHP data structure to plain PHP code
symfony/web-link                         v5.2.12            Manages links between resources
symfony/web-profiler-bundle              v4.4.44            Provides a development tool that gives detailed information about the execution of any request
symfony/web-server-bundle                v4.4.44            Provides commands for running applications using the PHP built-in web server
symfony/yaml                             v4.4.45            Loads and dumps YAML files
theofidry/alice-data-fixtures            1.5.2              Nelmio alice extension to persist the loaded fixtures.
tomsgu/pdf-merger                        v0.3              
trappar/alice-generator                  dev-master 1989557 Automatically generates alice fixture based on a set of objects
true/punycode                            v2.1.1             A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)
twig/string-extra                        v3.4.0             A Twig extension for Symfony String
twig/twig                                v3.4.3             Twig, the flexible, fast, and secure template language for PHP
ua-parser/uap-php                        v3.9.14            A multi-language port of Browserscope's user agent parser.
vich/uploader-bundle                     1.21.1             Ease file uploads attached to entities
voku/html-compress-twig                  4.0.2              Twig extension for compressing HTML
voku/html-min                            4.5.0              HTML Compressor and Minifier
voku/simple-cache                        4.0.5              Simple Cache library
voku/simple_html_dom                     4.8.6              Simple HTML DOM package.
webmozart/assert                         1.11.0             Assertions to validate method input/output with nice error messages.
willdurand/negotiation                   3.1.0              Content Negotiation tools for PHP provided as a standalone library.
zendframework/zend-loader                2.6.1              Autoloading and plugin loading strategies
zendframework/zend-mail                  2.10.0             Provides generalized functionality to compose and send both text and MIME-compliant multipart e-mail messages
zendframework/zend-mime                  2.7.2              Create and parse MIME messages and parts
zendframework/zend-stdlib                3.2.1              SPL extensions, array utilities, error handlers, and more
zendframework/zend-validator             2.13.0             Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria
zircote/swagger-php                      2.1.2              Swagger-PHP - Generate interactive documentation for your RESTful API using phpdoc annotations

Steps to Reproduce

  1. Create a doctrine Entity
  2. Enable some built-in CRUD operations https://api-platform.com/docs/core/operations/
  3. Configure sentry-symfony and enable tracing
  4. Make an api call for the specific operation and check sentry

Expected Result

A trace for the api call should be created in sentry and if the call is made from a well configured frontend it should be within the same trace.

Actual Result

No trace is created and if an exception occurs the trace from this exception isn't related with the frontends issues/traces

cleptric commented 1 year ago

@joerndyherrn I was talking to the devs of Api Platform during SymfonyCon, and we believe that this should just work out of the box. Can you maybe share your sentry.yaml here?

github-actions[bot] commented 1 year ago

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

joerndyherrn commented 1 year ago

@cleptric Within the php project this is the configuration file:

sentry:
    dsn: // removed it but the dsn for the backend project
    tracing:
        enabled: true
        dbal:
            enabled: true
        cache:
            enabled: true
        twig:
            enabled: true
    options:
        environment:        '%kernel.environment%'
        traces_sample_rate: 1.0
        sample_rate:        1
        error_types:        'E_ERROR'
        before_send:        'sentry.callback.before_send'

services:
    sentry.callback.before_send:
        class: 'App\Service\Sentry'
        factory: [ '@App\Service\Sentry', 'getBeforeSend' ]

The before send function only checks for a custom exception which we want to ignore

In the frontend (react) project we got the following configuration:


Sentry.init({
        dsn:         // the dsn for the frontend project
        integrations: [
            new Integrations.BrowserTracing({
                tracingOrigins: [
                    'https://example.com/', // originally we got absolute urls of the backend here
                    /^\//, // makes sure that all requests are traced
                ],
            }),
        ],
        environment:  Environment.getEnvironment(),
        release:      Environment.getVersion(),
        tracesSampleRate: getTracesSampleRate(),
    });```