from flask import request

from zeus import auth


class HeaderAuthentication(object):
    def authenticate(self):
        return auth.get_tenant_from_headers(request.headers)


class SessionAuthentication(object):
    def authenticate(self):
        user = auth.get_current_user()
        if not user:
            return None

        return auth.Tenant.from_user(user)

@@ -42,16 +42,51 @@
 rt auth%0A
+from zeus.utils.sentry import span%0A
 %0A%0Aclass 
@@ -107,32 +107,57 @@
 cation(object):%0A
+    @span(%22auth.header%22)%0A
     def authenti
@@ -264,24 +264,50 @@
 on(object):%0A
+    @span(%22auth.session%22)%0A
     def auth

Add span for authentication mechanism (#403)