You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Symfony\Component\ErrorHandler\Error\UndefinedMethodError]
Attempted to call an undefined method named "setCallbackWrapper" of class "Symfony\Component\Cache\Adapter\TraceableAdapter".
The method setCallbackWrapper it's trying to call is defined in the \Symfony\Component\Cache\Traits\ContractsTrait and it might be therefore it's assumed that it's also present on the TraceableAdapter. Because Sentry decorates the TraceableAdapter with the Sentry\SentryBundle\Tracing\Cache\TraceableCacheAdapter this will cause an exception.
A possible solution could be to just add the method setCallbackWrapper to your \Sentry\SentryBundle\Tracing\Cache\TraceableCacheAdapterTrait
The text was updated successfully, but these errors were encountered:
How do you use Sentry?
Sentry SaaS (sentry.io)
SDK version
SDK: 3.22, bundle: 4.14
Steps to reproduce
I added this configuration:
from this page: https://symfony.com/doc/current/cache.html#computing-cache-values-asynchronously
and got this exception:
The method
setCallbackWrapper
it's trying to call is defined in the\Symfony\Component\Cache\Traits\ContractsTrait
and it might be therefore it's assumed that it's also present on theTraceableAdapter
. Because Sentry decorates theTraceableAdapter
with theSentry\SentryBundle\Tracing\Cache\TraceableCacheAdapter
this will cause an exception.A possible solution could be to just add the method
setCallbackWrapper
to your\Sentry\SentryBundle\Tracing\Cache\TraceableCacheAdapterTrait
The text was updated successfully, but these errors were encountered: