Skip to content

Commit d65eb20

Browse files
Ahil  PonArulAhil  PonArul
Ahil PonArul
authored and
Ahil PonArul
committed
posted an APM doc on how to instrument future enhancements
1 parent d1cbcf5 commit d65eb20

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/APM.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Elastic APM
2+
3+
This application has been instrumented with Elastic APM.
4+
5+
In order to [configure](https://www.elastic.co/guide/en/apm/agent/python/current/configuration.html) this application environment variables should be
6+
used in the configMap of the `app.yaml` file.
7+
8+
9+
Custom instrumentation begins in the main method in `st_app.py` with the call
10+
11+
```
12+
client = Client()
13+
client.begin_transaction('main_page')
14+
```
15+
and ends with `client.end_transaction('main_page')`
16+
17+
The sidebar menu and charts are instrumented with [custom instrumentations](https://www.elastic.co/guide/en/apm/agent/python/current/api.html).
18+
19+
20+
The `display_sidebar` has its internal functions instrumented
21+
with the `with` notation.
22+
23+
The `charts` and `display_header` are instrumented with the `annotation` method.

0 commit comments

Comments
 (0)