Answer by Christopher A. ·
@Andreas Grabner & @Christian Schwarzbauer
I have worked on a way to instrument Scala Play and came up with a way to stitch calls to Play and capture most elements that can be also captured in the "servlet" sensor pack (parameters, URI, client IP...) but would need help in order to package this into a nice sensor pack.
Who could I get in touch with about this?
Answer by Michael K. ·
Hi Yoachi,
I tested https://github.com/ornicar/lila but I don't have the sessions/profile anymore. They key seems to be that play is based on actions and activators and a lot of asynchronous triggered events. These need to be starting points in the purepath.
Hi Michael
Thanks for your comments. In your case, is there any dynaTrace agent in front of Play 2 such as Java Agent or Browser Agent? I think it's possible to start PurePath with the entry point sensors if the Play 2 is the edge of end point of PurePath. But in our case, Play 2 is the middle tier AP server and we need to get the PurePath tag from PHP via HTTP. Do you think we need to use ADK?
Regards
Ryoichi
Hi Ryoichi,
For PHP we currently have no ADK. PHP has different implementations for HTTP communication. eg. curl which we support out of the box for communication between PHP and Java.
How is the communication in your case implemented?
Cheers Klaus
Hi Klaus
The PHP uses cURL to send the HTTP requests to the Netty/Play2. In this case, can the Netty get the PurePath tag from the PHP?
Regards
Ryoichi
the PHP tier is not the problem, if it uses cURL. most probably the problem is the middle tier with play/netty.
I just sent you an email, but long story short: I'm pretty sure, you will need the ADK in the play tier, if it does not work OOTB. and a CPU sampling session will hopefully give us some insights on how to use the ADK.
best, Christian
Hi Christian,
Could you please provide me with some information around passing through the dT tag with the Play framework? I am struggling with a similar problem.
Thanks!
KR,
Kristof
look at Agent Development Kit (ADK) and focus on the Tagging section
Answer by Michael K. ·
Hi,
Yes, I have an app internally tested with the play framework and java/scala and it works. In principle everything should work.
We don't have any preconfigured sensors though specific to the framework though, you might need to configure entry point sensors depending on how your application is structured.
Best
Michael
Hi Michael
We are struggling with Play Framework monitoring with 5.5/5.6. Here is our system architecture. In this case, as you said, what we need to do here is only setting the entry point sensors, right? My concern is that Netty exists on Play Framework. Have you tried monitoring this kind of system?
Users – (HTTP) -- Apache/PHP – (HTTP) -- Play Framework/Netty/Scala – (Thrift) -- Cassandra
Can you share your session files with us for our reference?
Regards
Ryoichi
JANUARY 15, 3:00 PM GMT / 10:00 AM ET