Commit 4726223
committed
Add per-operation GraphQL metrics
Record more granular GraphQL metrics: introduce a status variable and keep the aggregate counter/timer while adding dedicated per-operation counters and timers. Adds labels for operation name, type and status on the total counter, a per-operation count metric (graphql.operation.{type}.{name}.{status}.count), and a per-operation timer (graphql.operation.{type}.{name}.duration). This improves observability and enables per-operation histograms via Micrometer timers.1 parent 1abad47 commit 4726223
1 file changed
Lines changed: 14 additions & 3 deletions
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
| |||
0 commit comments