Skip to content

Commit 53f6294

Browse files
author
Darin Howard
committed
RT-987 - adding in Stackify RUM client code.
1 parent 080b877 commit 53f6294

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,35 @@ Be sure to shutdown the Direct Logger to flush this appender of any messages and
8888
LogManager.shutdown();
8989
```
9090

91+
### RUM Manual Instrumentation
92+
93+
Real User Monitoring (RUM) manual instrumentation allows you to specify where the RUM JavaScript block is injected.
94+
95+
It is recommended you provide a `stackify-api.properties` file in your application classpath with the following content:
96+
97+
````
98+
stackify.application=My Application Name
99+
stackify.environment=My Environment Name
100+
````
101+
102+
Your application code will need to call out to the Stackify `com.stackify.apm.Stackify.getRUMJavaScriptBlock()` method in the `<head>` section as detailed below:
103+
104+
**JSP Example**
105+
106+
````
107+
<html>
108+
<head>
109+
<%= com.stackify.apm.Stackify.getRUMJavaScriptBlock() %>
110+
<script and link tags>
111+
</head>
112+
<body>
113+
...
114+
</body>
115+
</html>
116+
````
117+
118+
119+
91120
## License
92121

93122
Copyright 2013 Stackify, LLC.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.stackify.apm;
2+
3+
/**
4+
* Stackify Utility.
5+
* Provides function to manually instrument web requests for RUM tracking.
6+
*
7+
* @author Darin Howard
8+
*/
9+
public class Stackify {
10+
11+
/**
12+
* Returns the RUM JavaScript block for tracking the current web request
13+
*
14+
* @return String javascript script block
15+
*/
16+
public static String getRUMJavaScriptBlock() {
17+
return "";
18+
}
19+
20+
}

0 commit comments

Comments
 (0)