Debian Codegraph @

docs/content/instrumenting/summary.md

raw symbols SCIP
1 ---
2 title: Summary
3 weight: 3
4 ---
5
6 Summaries track the size and number of events.
7
8 ```python
9 from prometheus_client import Summary
10 s = Summary('request_latency_seconds', 'Description of summary')
11 s.observe(4.7) # Observe 4.7 (seconds in this case)
12 ```
13
14 There are utilities for timing code:
15
16 ```python
17 @s.time()
18 def f():
19 pass
20
21 with s.time():
22 pass
23 ```
24
25 The Python client doesn't store or expose quantile information at this time.