Results 13 comments of Cameron Simpson

On 25Sep2022 16:14, Martin Brennan ***@***.***> wrote: > Merged [1]#17996 into main. Huzzah! Thank you! - Cameron Simpson ***@***.***>

On 11Nov2022 11:11, Skip Montanaro ***@***.***> wrote: > The longer this thread continues, the more I'm beginning to believe > there are two distinct use cases. > 1. Map data...

Kevin got in touch by other means.

Well, things are more complex than I'd thought. `super(...)` is returning me the Htmx middleware. If I put in a breakpoint just before the failing call I see this: ```...

Listed below. And now you point me there, I wrote `AuditLogMiddleware` myself, and my ignorance was great. I might put some debugging in there... ``` MIDDLEWARE ('django.middleware.security.SecurityMiddleware', 'preferredmedia.common.middleware.NoMediaICWhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.cache.UpdateCacheMiddleware',...

Hmm, removing `django_htmx.middleware.HtmxMiddleware` from the middleware removes the exception.

I'm poking around in `SentryWrappingMiddleware.__init__` from `sentry_sdk/integrations/django/middleware.py:131` and am a bit puzzled. The MRO of this `SentryWrappingMiddleware` is `(django_htmx.middleware.HtmxMiddleware,object)` which seems as expected. But `self` _isn't_ an instance of `SentryWrappingMiddleware`,...

Belay that: I'm being deceived by this code at the bottom of the `middleware.py` module: ``` for attr in ( "__name__", "__module__", "__qualname__", ): if hasattr(middleware, attr): setattr(SentryWrappingMiddleware, attr, getattr(middleware,...

Oh, here we go. Possible diagnosis. We define `SentryWrappingMiddleware` like this: ``` class SentryWrappingMiddleware( _asgi_middleware_mixin_factory(_check_middleware_span) # type: ignore ): ``` and we define `_asgi_middleware_mixin_factory` like this at the top of...