code: def _set_request_user_id_metric(self, request):
          
          if hasattr(request, 'user') and hasattr(request.user, 'id') and request.user.id:
              monitoring.set_custom_metric('request_user_id', request.user.id)
docs: Add request_user_id metric
  
          Metrics:
               request_user_id