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

Python3 Sanic + Newrelic

feature-idea
python3
rfb

#1

Please paste the permalink to the page in question below:

Please share your agent version and other relevant versions below:

Python Version: Python3.5.2
Newrelic Agent Version: 2.80.0.60

Please share your question/describe your issue below. Include any screenshots that may help us understand your question:

I’m not able to see any data in newrelic.

I’m using python3 and Sanic as my web server. I’m using pm2 to monitor the application. I’m not able to integrate it with python agent. I tried in the following 2 ways.

  1. using sanic_server.sh file, which contains newrelic-admin run-program python3 /var/lib/capeve/sanic_server.py. Then running pm2 start --interpreter bash sanic_server.sh. Didn’t workout.
  2. Directly using newrelic.agent in server itself.
    import newrelic.agent
    newrelic.agent.initialize()

#2

@nikhilesh Thanks for posting to the forum. I see that my colleague also responded to you in the support ticket you opened regarding this issue.

As mentioned in the support ticket, the Python agent does not currently support Sanic. We’ve entered the feature request on your behalf for the agent to support Sanic.


#3

Any updates on this feature?


#4

Is this possible yet? Sanic has gotten quite popular as a Python web framework.


#5

Any updates on this? It’s been more than a year since this feature request had been filed?


#6

@abhinavsrivastava The Python agent does not currently support Sanic. I’ll add a feature request on your behalf.


#7

Hi @reelio , @abhinavsrivastava , @mikael.koponen , and @nikhilesh !

I’m pleased to announce that our 4.4.0.103 release of the Python agent is out, and it includes out of the box instrumentation support for Sanic, including support for distributed tracing.

After updating to the latest agent, applications using Sanic should have requests reported in APM.

Give it a try and let us know what you think!