Problem/Motivation

After installing the module we've started seeing some fatal errors due to an undefined method.

Error: Call to undefined method Sentry\Tracing\TransactionContext::fromSentryTrace() in Drupal\raven\EventSubscriber\RequestSubscriber->onRequest() (line 92 of /mnt/www/html/docroot/modules/contrib/raven/src/EventSubscriber/RequestSubscriber.php)

It looks like that method was added in 3.1.0 of the sdk.

Steps to reproduce

Install the latest version of the module with version 3.0.0 of the SDK.

Proposed resolution

Update the dependency to ^3.1.0.

Remaining tasks

Do it!

User interface changes

API changes

Data model changes

Comments

AndyF created an issue. See original summary.

andyf’s picture

Issue summary: View changes

  • mfb committed 5e6282a on 3.x
    Issue #3230592 by AndyF, mfb: Require sdk ^3.1.0
    

  • mfb committed bd8e6ff on 3.x
    Issue #3230592 by AndyF, mfb: Require sdk ^3.1.0
    
mfb’s picture

Status: Active » Fixed

Good catch! Theoretically it shouldn't be easy for someone to use an old version of the sdk, but who knows..

andyf’s picture

Awesome, thanks for the quick turn-around!

Theoretically it shouldn't be easy for someone to use an old version of the sdk

Yeah, we have some, er, cruft in our composer.json and I suspect it's down to some dodgy config.platform values and not using --ignore-platform-reqs, definitely an edge-case!

Thanks again

  • mfb committed 9a8925f on 3.x
    Issue #3230592 by mfb: Check for existence of new method in sdk ^3.1
    
  • mfb committed b39c22f on 3.x
    Revert "Issue #3230592 by AndyF, mfb: Require sdk ^3.1.0"
    
    This reverts...
  • mfb committed d3ebae4 on 3.x
    Revert "Issue #3230592 by AndyF, mfb: Require sdk ^3.1.0"
    
    This reverts...
mfb’s picture

Argh, it's not that easy, we are now in dependency hell with Drupal 8.9 support :( So I needed to revert these and check for the missing method.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.