-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about Angular SPA application monitoring #65
Comments
Hi, this snipped is outdated. I've just committed a gradle task which you can use to export the skeleton. Clone the repo and execute |
Thanks for the quick turnaround and guidance. I hope this works out as I hope it will. |
So to be clear here is my situation. We have an Angular SPA and back end services crafted using Spring Web MVC ( we simply don't have the V part as we ship mostly JSON data and images back to the SPA client). Our developers all work on their own boxes and the SPA is served from browsersync server on localhost:5555. The service is deployed to tomcat on their box at localhost:8080. This setup was initially a challenge because of CORS and getting this to work was somewhat tricky so I am used to that aspect. So while I can inject the widget into my SPA index.html, I have had no real success getting it to work properly which has been a bummer today. Here is a recap of what I did: At this point I now have the widget and the modal window functioning but with no content for call traces, requests, metrics etc... I can also hit stagemonitor through the tomcat server (rest services, sitemonitor libs, bytebuddy agent) and see metrics being recorded as I excersise my app. That is not really all that interesting for me. I need this front end functionality to help guide developers to the places where things are iffy in the code. Am I off my rocker here trying to use the tool in this manner? There has got to be a way to make this a configurable option. If I can get my SPA js to work with my tomcat backend then there is no reason I can think of that this could not work for stagemonitor as well. Any ideas that you could float my way would be appreciated. I am going to start looking through the code to see if I can figure out a way to make this work. |
I am very Interested in arming my team of Angular app developers with the ability to get instant feedback on key performance metrics during development. Stagemonitor appears to be one of the few APM tools that appears to target this exact use case. I am struggling with several issues here and I was hoping to get some clarification on capabilities and configuration matters.
Lets start with some basic configuration information on my project:
Our developers use Browsersync and deploy the REST service web app based on SPRING WEB-MVC on a local tomcat during development.
It was trivial to get stagemonitor version 0.87.2 wired into the REST service tier; however, getting the front end wired up is proving to be very tricky.
Question #1
I have tried to follow the pattern that was provided in:
How to use stagemonitor on an AngularJS app with a Spring-Boot server ? #197 to no avail.
I have a single index.html web page that is loaded at application start up and I added the following to the end of the body section of that page. The stage monitor icon appears but it does nothing. I kinda suspected that this is not going to work because there is no:
stagemonitor/static/rum/boomerang-56c823668fc.min.js in the version of stagemonitor (0-87.2) I am using. Has this dependency on boomerang been replaced with something else?
What you should note is that my Browsersync is running on localhost port 5555 and I am linking up to the REST service deployment of stagemonitor on loalhost port 8080 to get at the stagemonitor artifacts that are needed to drive the front end stagemonitor functionality.
Can anyone provide some insight as to what I need to do to get the web page side of this working?
The text was updated successfully, but these errors were encountered: