Skip to content

Commit fb7bac4

Browse files
committed
LNX-330 - Add RUMv2 doc
1 parent 8819505 commit fb7bac4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,23 @@ We can configure every metric with settings:
124124

125125
Note, "autoreport_last_value_if_nothing_reported" property has influence only on "average" metric.
126126

127+
### **Real User Monitoring (RUM)**
128+
129+
Real user monitoring injects a script tag containing the [RUM JS](https://stackify.com/retrace-real-user-monitoring/) that is responsible for capturing information about the http requests on the browser. This approach is manual and needs to be configured.
130+
131+
#### RUM - Setup
132+
133+
```ruby
134+
# Configuration - Standard API
135+
Stackify.setup do |config|
136+
...
137+
config.rum_key = "YourRumKey"
138+
end
139+
140+
# Use this to apply on views
141+
Stackify.rum.insert_rum_script
142+
```
143+
127144
## Troubleshooting
128145

129146
If there are problems, you can enable internal logging of the stackify-api-ruby project. Uncomment out the config.logger and config.logger.level lines in the 'config/initializers/stackify.rb' file:

0 commit comments

Comments
 (0)