This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Commit 485c700
feat: Add gRPC A66/A94 metrics (#4333)
* feat: Add gRPC A66/A94 metrics.
This change adds the `grpc.client.attempt.started` metric in
the
[A66](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md)
proposal and all the subchannel metrics in the
[A94](https://github.com/grpc/proposal/blob/master/A94-subchannel-otel-metrics.md)
proposal. Metric-specific attributes were also added.
The change also updates the metric exporter to use the same timestamp
for start and end time for GAUGE type data point. This is required by
the StackDriver or otherwise the export will fail.
* Enable different attributes in different gRPC metrics
* Enable optional labels
---------
Co-authored-by: rahul2393 <[email protected]>1 parent 7245220 commit 485c700
3 files changed
Lines changed: 53 additions & 10 deletions
File tree
- google-cloud-spanner/src/main/java/com/google/cloud/spanner
Lines changed: 43 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
71 | 107 | | |
72 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
73 | 114 | | |
74 | 115 | | |
75 | 116 | | |
| |||
100 | 141 | | |
101 | 142 | | |
102 | 143 | | |
103 | | - | |
104 | | - | |
105 | 144 | | |
106 | 145 | | |
107 | 146 | | |
| |||
124 | 163 | | |
125 | 164 | | |
126 | 165 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 166 | | |
131 | 167 | | |
132 | 168 | | |
| |||
140 | 176 | | |
141 | 177 | | |
142 | 178 | | |
143 | | - | |
144 | 179 | | |
145 | 180 | | |
146 | 181 | | |
| |||
235 | 270 | | |
236 | 271 | | |
237 | 272 | | |
238 | | - | |
239 | | - | |
| 273 | + | |
| 274 | + | |
240 | 275 | | |
241 | 276 | | |
242 | 277 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | | - | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| |||
0 commit comments