Agent for JSP application

Downloading the Agent

  1. Download the files sixthSenseConfig.js and ssindex.js files. Contact Customer Support for the jsp link. Since the npm library is not installed in JSP, we can't install the agent using the npm command.

Download Link for agent files:

curl --header "PRIVATE-TOKEN::{{PRIVATE_TOKEN}}" --output sixthsense.tarz "https://artifacts-observability.sixthsense.rakuten.com/api/v4/projects/9/packages/generic/sixthsense-javascript-agent-min-js/{{AGENT_VERSION}}/sixthsense.tar.gz"
  1. Untar the downloaded agent file using the tar -xvzf sixthsense.tar.gz command.
  2. Copy both the files to the js folder under resources in the application source code.
  3. Change the necessary parameters (service, collector, authorization) in the SixthSenseConfig.js file.
  4. Import both the js file in a common JSP file (if not a common JSP then in all JSP view files) in the bottom (IMPORTANT). For example:
<!-- SixthSense Script -->
<script src="https://order.my.rakuten.co.jp/com/ss_test/ssindex.js" type="text/javascript"></script>
<script src="https://order.my.rakuten.co.jp/com/ss_test/SixthSenseConfig.js" type="text/javascript"></script>
</body>
</html>