--To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/F4ZOQ02eXMQJ.
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/Ucrsc6OQF1sJ.
You can find the latest releases of NewRelic here,�http://download.newrelic.com/newrelic/java-agent/newrelic-api/
rgds,Chris
On Fri, Oct 12, 2012 at 4:46 PM, Tom Carchrae <t...@carchrae.net> wrote:
Hi Grzegorz,
You should file a support ticket with NewRelic as well if you have not. ďż˝
I did have a lot of issues with NewRelic but after a bit of back and forth, they actually sent me a version that would work with Play. ďż˝ The earlier version was terrible and threw many many exceptions.
The last link they sent me was�https://download.newrelic.com/newrelic/java-agent/newrelic-api/2.7.0/� (I did not actually test with the 2.7 release version, just the beta)
I did nothing to their default configuration file, just ran it out of the box. �I ran it on heroku. �(the heroku docs are outdated and link to an old version of the newrelic jar)
I tend to use it to profile my application during the 'tweak and optimize' phase of development rather than leaving it running all the time. �I'm not sure I'd be comfortable leaving it on all the time, but could just be paranoid.
Tom
On Fri, Oct 12, 2012 at 7:03 AM, Grzegorz Slowikowski <gslowi...@gmail.com> wrote:
Hi Donovan and others
I've found NewRelic recently. It looks very interresting, so I've decided to try it with Play! 1.2.5,
first on new, simple project.
It does not work for me.
I've started with Real User Monitoring (https://newrelic.com/docs/java/real-user-monitoring-in-java).
I've installed everything, set:
ďż˝ browser_monitoring:
��� # By default the agent automatically inserts API calls in compiled JSPs to
��� # inject the monitoring JavaScript into web pages.
��� # Set this attribute to false to turn off this behavior.
��� auto_instrument: false
��� # Set this attribute to false to prevent injection of the monitoring JavaScript.
��� # Default is true.
��� enabled: true
in newrelic.yml,
added NewRelic java files from newrelic-api.jar to "app" folder,
modified "app/views/main.html" file, now it looks like:
<!DOCTYPE html>
<html>
��� <head>
������� <title>#{get 'title' /}</title>
������� <meta charset="${_response_encoding}">
${com.newrelic.api.agent.NewRelic.getBrowserTimingHeader().raw()}
������� <link rel="stylesheet" media="screen" href="@{'/public/stylesheets/main.css'}">
������� #{get 'moreStyles' /}
������� <link rel="shortcut icon" type="image/png" href="@{'/public/images/favicon.png'}">
������� <script src="@{'/public/javascripts/jquery-1.5.2.min.js'}" type="text/javascript" charset="${_response_encoding}"></script>
������� #{get 'moreScripts' /}
��� </head>
��� <body>
������� #{doLayout /}
${com.newrelic.api.agent.NewRelic.getBrowserTimingFooter().raw()}
��� </body>
</html>
After starting Play! I see:
paďż˝ 12, 2012 15:28:24 +0200 NewRelic 20 FINER: Real user monitoring is disabled
paďż˝ 12, 2012 15:28:24 +0200 NewRelic 20 FINER: Got browser timing header in NewRelic API:
paďż˝ 12, 2012 15:28:24 +0200 NewRelic 20 FINER: Real user monitoring is disabled
paďż˝ 12, 2012 15:28:24 +0200 NewRelic 20 FINER: Got browser timing footer in NewRelic API:
in newrelic_agent.log file.
Of course, there is no javascript injected in the page. Why is this feature disabled?
When I tried to configure NewRelic with my real project things went even worse,
but I will not write about it yet.
Can someone help me?
Greetings
Grzegorz Slowikowski
W dniu poniedzia�ek, 20 lutego 2012 13:37:19 UTC+1 u�ytkownik Donovan Muller napisa�:
We currently use the 2.8.0 agent version (as well as an older version on a test box). Works fine for us on Play 1.2.5.
You should have the "auto instrument" stuff switched off (and manually instrument),��however have "real user monitoring" enabled - seems like you've instrumented, but have have not enabled real user monitoring.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/g6y0GGsaNYsJ.