Jython version: 2.7.0
Newrelic version: 22.214.171.124
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.
New Relic Edit
- I want this too
- I have more info to share (reply below)
- I have a solution for this
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.