You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,31 @@ If you use uWSGI in forking workers mode, you must specify `--lazy-apps` (or `la
57
57
58
58
The instana package will automatically collect key metrics from your Python processes. Just install and go.
59
59
60
+
## Want End User Monitoring?
61
+
62
+
Instana provides deep end user monitoring that links server side traces with browser events to give you a complete view from server to browser.
63
+
64
+
For Python templates and views, get your EUM API key from your Instana dashboard and you can call `instana.helpers.eum_snippet(api_key='abc')` from within your layout file. This will output
65
+
a small javascript snippet of code to instrument browser events. It's based on [Weasel](https://github.com/instana/weasel). Check it out.
66
+
67
+
As an example, you could do the following:
68
+
69
+
```python
70
+
from instana.helpers import eum_snippet
71
+
72
+
instana.api_key ='abc'
73
+
meta_kvs = { 'username': user.name }
74
+
75
+
# This will return a string containing the EUM javascript for the layout or view.
76
+
eum_snippet(meta=meta_kvs)
77
+
```
78
+
79
+
The optional second argument to `eum_snippet()` is a hash of metadata key/values that will be reported along with the browser instrumentation.
80
+
81
+

82
+
83
+
See also the [End User Monitoring](https://docs.instana.io/products/website_monitoring/#configuration) in the Instana documentation portal.
84
+
60
85
## OpenTracing
61
86
62
87
This Python package supports [OpenTracing](http://opentracing.io/). When using this package, the OpenTracing tracer (`opentracing.tracer`) is automatically set to the `InstanaTracer`.
0 commit comments