def on_server_span_created(self, context: RequestContext, server_span: Span) -> None: observer = SentryServerSpanObserver(self.raven, server_span) server_span.register(observer) context.sentry = self.raven
def on_server_span_created(self, context: RequestContext, server_span: Span) -> None: sentry_hub = sentry_sdk.Hub.current observer = _SentryServerSpanObserver(sentry_hub, server_span) server_span.register(observer) context.sentry = sentry_hub