Comments (10)
Silk is an awesome tool, it would be great to use it for profiling celery or other async tasks that happen outside the request/response cycle.
from django-silk.
We have a use case where this feature would be extremely useful. Our application has a lot of long-running asynchronous "tasks" using RQ. Currently, django-silk can't help us because none of the hard work is being done within the scope of a request. Each individual task is very intensive but there are not that many of them, relatively speaking, so it's not a "high volume" problem.
A lot of applications use Celery, also. Same principle. I would love to be able to use Silk to debug our task performance.
from django-silk.
Do not want to necro something, is there a way to achieve this somehow?
from django-silk.
FYI I found this GitHub gist that you can use to run django-silk against arbitrary functions not wrapped in APIs. This was a good-enough workaround for me to debug some performance challenges, although it would be fantastic to see something supported by django-silk in the future.
from django-silk.
How to that? what about profiling django-channels request with silk? @avelis @smaccona
from django-silk.
@auvipy Not sure if django-channels is within the purview of this library. Not against it though. The issue becomes volume. Since channels is meant for websockets it will definitely be high-volume.
from django-silk.
OK. we can re think about django channels at a later stage.
from django-silk.
+1
from django-silk.
any prospective API wor workflow do you have in mind how should be the DevUX for the API of that profiler to profile celery/ etc with or outside of django req/resp cycle?
from django-silk.
Hi,
Why not give an option in the plugin so that Celery/Rabbit MQ can be used to log the data in Database asynchronously. We face timeouts for requests which have large amounts of data.
Is this a suggested strategy? if yes then my team can work on the feature and push it
from django-silk.
Related Issues (20)
- Silk re-uses DB connection for failed atomic transactions.
- SILKY_HIDE_COOKIES does not hide cookie header in different case
- Silk not showing overall and 0 for queries HOT 2
- Request for changing connection database from PRINCIPAL CONNECTION to SQLite or other (SILK)
- Use Graphql, how to count the time for each specific request
- [Python 3.12] ValueError: Another profiling tool is already active
- Curl and Django Test Client URL parameters are being url encoded
- Add api to access request_id of current request
- Is it possible to track Cache(redis) queries?
- Defaults - filter silk itself from requests
- Defaults - use list view not card view HOT 1
- 1054, "Unknown column 'prof_file' in 'field list'"
- Summary stats and profile stats disconnect...
- `Request.objects.all().delete()` is dangerous HOT 2
- Localized profiling
- django.utils.encoding.DjangoUnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 2: invalid start byte.
- Incorrect (Blank) Table Identification in SQL Queries for Update Operation
- Should we consider requirement `autopep8` only as development only? HOT 2
- hope the silk should not be access when set DEBUG=False
- Silk not working with django tenant schemas
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-silk.