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

Feature Idea: Newrelic for Jython

feature-idea

#1

Jython version: 2.7.0
Newrelic version: 5.2.3.131

I was testing things out on a jython shell and I’ve got this:

>>> import newrelic.agent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "..../newrelic/agent.py", line 1, in <module>
    from newrelic.config import (
  File "..../newrelic/config.py", line 18, in <module>
    import newrelic.core.agent
  File "..../newrelic/core/agent.py", line 18, in <module>
    import newrelic.core.application
  File "..../newrelic/core/application.py", line 22, in <module>
    from newrelic.core.data_collector import create_session
  File "..../newrelic/core/data_collector.py", line 20, in <module>
    from newrelic.common import certs, system_info
  File "..../newrelic/common/system_info.py", line 7, in <module>
    import multiprocessing
ImportError: No module named multiprocessing

then I’ve found this stackoverflow answer stating that multiprocessing module is not available because it requires C extensions: https://stackoverflow.com/a/9101268/3722722

Looking into the system_info.py’s code, I can see that it has code that tried to support Jython though. e.g.

from java.lang import Runtime

Even with bypassing that import, there’s another file that imports cProfile too which seems to be another thing that Jython does not have.

Any advice?


New Relic Edit

  • I want this too
  • I have more info to share (reply below)
  • I have a solution for this

0 voters

We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.


#2

We don’t currently support the Python Agent with Jython. I will create a Feature Request on your behalf to add support for Jython.

I’ll tag @RyanVeitch who will convert this to a Feature Request thread for you! :slight_smile: