Exemple #1
0
 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
Exemple #2
0
 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