Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency sentry/sentry-symfony to v5 #42

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jun 21, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
sentry/sentry-symfony (source) 4.14.0 -> 5.0.1 age adoption passing confidence

Release Notes

getsentry/sentry-symfony (sentry/sentry-symfony)

v5.0.1

Compare Source

The Sentry SDK team is happy to announce the immediate availability of Sentry Symfony SDK v5.0.1.

Bug Fixes
  • Add missing setCallbackWrapper method to TraceableCacheAdapterTrait (#​841)
  • Fix detection of the symfony/http-client being installed (#​858)

v5.0.0

Compare Source

The Sentry SDK team is thrilled to announce the immediate availability of Sentry Symfony SDK v5.0.0.

Breaking Change

Please refer to the UPGRADE-5.0.md guide for a complete list of breaking changes.

This version adds support for the underlying Sentry PHP SDK v4.0.
Please refer to the PHP SDK sentry-php/UPGRADE-4.0.md guide for a complete list of breaking changes.

  • This version exclusively uses the envelope endpoint to send event data to Sentry.

    If you are using sentry.io, no action is needed.
    If you are using an on-premise/self-hosted installation of Sentry, the minimum requirement is now version >= v20.6.0.

  • You need to have ext-curl installed to use the SDK.

  • The IgnoreErrorsIntegration integration was removed. Use the ignore_exceptions option instead.
    Previously, both Symfony\Component\ErrorHandler\Error\FatalError and Symfony\Component\Debug\Exception\FatalErrorException were ignored by default.
    To continue ignoring these exceptions, make the following changes to the config file:

    // config/packages/sentry.yaml
    
    sentry:
      options:
        ignore_exceptions:
          - 'Symfony\Component\ErrorHandler\Error\FatalError'
          - 'Symfony\Component\Debug\Exception\FatalErrorException'

    This option performs an is_a check now, so you can also ignore more generic exceptions.

Features
  • Add support for Sentry Developer Metrics (#​1619)

    use function Sentry\metrics;
    
    // Add 4 to a counter named hits
    metrics()->increment(key: 'hits', value: 4);
    
    // Add 25 to a distribution named response_time with unit milliseconds
    metrics()->distribution(key: 'response_time', value: 25, unit: MetricsUnit::millisecond());
    
    // Add 2 to gauge named parallel_requests, tagged with type: "a"
    metrics()->gauge(key: 'parallel_requests', value: 2, tags: ['type': 'a']);
    
    // Add a user's email to a set named users.sessions, tagged with role: "admin"
    metrics()->set('users.sessions', '[email protected]', null, ['role' => User::admin()]);

    Metrics are automatically sent to Sentry at the end of a request, hooking into Symfony's kernel.terminate event.

  • Add new fluent APIs (#​1601)

    // Before
    $transactionContext = new TransactionContext();
    $transactionContext->setName('GET /example');
    $transactionContext->setOp('http.server');
    
    // After
    $transactionContext = (new TransactionContext())
        ->setName('GET /example');
        ->setOp('http.server');
  • Simplify the breadcrumb API (#​1603)

    // Before
    \Sentry\addBreadcrumb(
        new \Sentry\Breadcrumb(
            \Sentry\Breadcrumb::LEVEL_INFO,
            \Sentry\Breadcrumb::TYPE_DEFAULT,
            'auth',                // category
            'User authenticated',  // message (optional)
            ['user_id' => $userId] // data (optional)
        )
    );
    
    // After
    \Sentry\addBreadcrumb(
        category: 'auth',
        message: 'User authenticated', // optional
        metadata: ['user_id' => $userId], // optional
        level: Breadcrumb::LEVEL_INFO, // set by default
        type: Breadcrumb::TYPE_DEFAULT, // set by default
    );
  • New default cURL HTTP client (#​1589)

    The SDK now ships with its own HTTP client based on cURL. A few new options were added.

    // config/packages/sentry.yaml
    
    sentry:
      options:
        - http_proxy_authentication: 'username:password' // user name and password to use for proxy authentication
        - http_ssl_verify_peer: false // default true, verify the peer's SSL certificate
        - http_compression: false // default true, http request body compression

    To use a different client, you may use the http_client option.
    To use a different transport, you may use the transport option. A custom transport must implement the TransportInterface.
    If you use the transport option, the http_client option has no effect.

Misc
  • The abandoned package php-http/message-factory was removed.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Jun 21, 2024
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch 4 times, most recently from 80a4f45 to 52b0f09 Compare June 28, 2024 01:23
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch 6 times, most recently from 6b93acf to 8a8a1a1 Compare July 10, 2024 22:07
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch 3 times, most recently from 990b638 to e433a11 Compare July 24, 2024 09:59
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch 4 times, most recently from 3fb044e to 57c3fe3 Compare July 30, 2024 22:45
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch 5 times, most recently from a65d070 to f1b9ba5 Compare August 14, 2024 00:38
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch 2 times, most recently from 4db6584 to 406910f Compare August 23, 2024 18:44
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch 2 times, most recently from 287f778 to c4988c0 Compare September 2, 2024 01:24
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch from c4988c0 to f127497 Compare September 24, 2024 18:35
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch 2 times, most recently from 923492b to dd92d46 Compare October 8, 2024 18:44
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch from dd92d46 to 3fe57d8 Compare October 10, 2024 19:06
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch 3 times, most recently from 5c0f56d to bf55020 Compare October 31, 2024 17:33
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch 3 times, most recently from 972d32c to 1d963d1 Compare November 10, 2024 13:14
@renovate renovate bot force-pushed the renovate/sentry-sentry-symfony-5.x branch from 1d963d1 to d53f473 Compare November 13, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants