Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Python agent in Daphne ASGI


#1

Hi Linds,

I’ve got a question for you. I’m running a Django Channels applications, using Daphne ASGI instead of WSGI. Is there a way to get new relic up and running? I’m using the lines as provided with the python intro, but no data gets transmitted. Could it be the ASGI part?


Welcome New Explorers | September 19 2018
#2

Hey @bob9 I moved your post over into the Python category, so our community of Python experts can help out here.


#3

Hi there @bob9 -

Unfortunately, the Python agent does not do this automatically, but you can make it work manually. Here’s an example:

At the time of the above post, we were hopeful that this was on the near-term roadmap, but priorities shifted. That said, we’d love to see if we can help you get this working.


#4

There is now a workaround… Not officially support though…


#5

Thanks for sharing that in this thread @reloded :smiley:


#6

Python Agent 4.16.0.116 added a new web_transaction API can be used to instrument non-WSGI web transactions. For usage of this API check out https://docs.newrelic.com/docs/agents/python-agent/python-agent-api/webtransaction :slight_smile: