File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,27 @@ and `Sampling`_.
37
37
.. _Zipkin : http://twitter.github.io/zipkin/
38
38
.. _HTrace : https://github.com/cloudera/htrace/
39
39
40
+ Instrumenting Your Code
41
+ =======================
42
+
43
+ Instrumenting your code with tracing should be pretty easy.
44
+
45
+ At application startup, call :func: `trace-set-host ` with a
46
+ string identifier that is unique among the machines running
47
+ the software.
48
+
49
+ To start tracing, either call :func: `trace-push ` and
50
+ :func: `trace-pop ` or use :macro: `with-tracing `:
51
+
52
+ .. code-block :: dylan
53
+
54
+ with-tracing ("http-request")
55
+ trace-add-data("client-ip-address", ...);
56
+ trace-add-data("requested-path", ...);
57
+
58
+ ... do work ...
59
+ end;
60
+
40
61
The TRACING-CORE module
41
62
=======================
42
63
You can’t perform that action at this time.
0 commit comments