Skip to content

Commit dbf4145

Browse files
committed
LNX-329 - Add RUMv2 doc
1 parent b988b64 commit dbf4145

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,22 @@ logger = logging.getLogger('django')
123123

124124
logger.warning('Something happened')
125125
```
126+
127+
128+
## **Real User Monitoring (RUM)**
129+
130+
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.
131+
132+
### RUM - Setup
133+
134+
```python
135+
# Configuration - Standard API
136+
logger = stackify.getLogger(..., rum_key="YourRumKey")
137+
# or Configuration - Python Logging Integration
138+
stackify.StackifyHandler(..., rum_key="YourRumKey")
139+
140+
# Use this to apply on views
141+
import stackify.rum
142+
143+
stackify.rum.insert_rum_script()
144+
```

0 commit comments

Comments
 (0)