Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sentrivana/235d67377e16bb04f16354995f551728 to your computer and use it in GitHub Desktop.
Save sentrivana/235d67377e16bb04f16354995f551728 to your computer and use it in GitHub Desktop.
No DSN, with tracing, with errors
Top 25 lines
#1: sentry_sdk/tracing.py:115: 41.2 KiB
return object.__new__(cls)
#2: sentry_sdk/hub.py:472: 24.8 KiB
return span.start_child(**kwargs)
#3: sentry_sdk/scope.py:446: 22.3 KiB
self._breadcrumbs = deque() # type: Deque[Breadcrumb]
#4: sentry_sdk/integrations/django/middleware.py:89: 21.9 KiB
description = "{}.{}".format(description, function_basename)
#5: sentry_sdk/utils.py:1256: 20.1 KiB
func_qualname = func.__module__ + "." + func_qualname
#6: sentry_sdk/integrations/django/middleware.py:126: 16.8 KiB
class SentryWrappingMiddleware(
#7: sentry_sdk/integrations/django/asgi.py:110: 15.5 KiB
class SentryASGIMixin:
#8: sentry_sdk/tracing.py:134: 15.2 KiB
self.span_id = span_id or uuid.uuid4().hex[16:]
#9: sentry_sdk/tracing.py:143: 15.1 KiB
self._data = {} # type: Dict[str, Any]
#10: sentry_sdk/tracing.py:142: 15.1 KiB
self._tags = {} # type: Dict[str, str]
#11: sentry_sdk/integrations/django/views.py:84: 12.7 KiB
return callback(request, *args, **kwargs)
#12: sentry_sdk/utils.py:451: 11.7 KiB
if frame.f_locals[flag_name]:
#13: sentry_sdk/integrations/django/signals_handlers.py:66: 10.8 KiB
return receiver(*args, **kwargs)
#14: sentry_sdk/scope.py:648: 10.8 KiB
rv = object.__new__(self.__class__) # type: Scope
#15: sentry_sdk/tracing.py:439: 9.5 KiB
self.timestamp = self.start_timestamp + timedelta(
#16: sentry_sdk/tracing.py:145: 9.4 KiB
self.start_timestamp = start_timestamp or datetime.utcnow()
#17: sentry_sdk/_werkzeug.py:63: 8.5 KiB
yield key[5:].replace("_", "-").title(), value
#18: sentry_sdk/integrations/_wsgi_common.py:166: 8.0 KiB
return {
#19: sentry_sdk/utils.py:1534: 7.5 KiB
return time.perf_counter_ns()
#20: sentry_sdk/hub.py:474: 7.1 KiB
return Span(**kwargs)
#21: sentry_sdk/integrations/django/signals_handlers.py:57: 7.1 KiB
@wraps(receiver)
#22: sentry_sdk/integrations/wsgi.py:92: 7.0 KiB
_make_wsgi_event_processor(
#23: sentry_sdk/hub.py:247: 7.0 KiB
self._stack = [(client, scope)]
#24: sentry_sdk/integrations/wsgi.py:256: 7.0 KiB
def event_processor(event, hint):
#25: sentry_sdk/hub.py:523: 6.3 KiB
profile = Profile(transaction, hub=self)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment