This repository was archived by the owner on Jun 8, 2026. It is now read-only.
Commit bb5095d
authored
feat(observability): enable OpenTelemetry metrics and tracing by default (#1410)
This change enables OpenTelemetry metrics and tracing by default. [Fix
for [Issues
1222](https://github.com/googleapis/python-spanner/issues/1222)]1 parent 9535e5e commit bb5095dCopy full SHA for bb5095d
6 files changed
+244-322Lines changed: 244 additions & 322 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- google/cloud/spanner_v1
- tests/unit
Expand file treeCollapse file tree
Open diff view settings
Collapse file
google/cloud/spanner_v1/_opentelemetry_tracing.py
Copy file name to clipboardExpand all lines: google/cloud/spanner_v1/_opentelemetry_tracing.py+7-20Lines changed: 7 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
38 | 33 | |
39 | 34 | |
40 | 35 | |
| ||
70 | 65 | |
71 | 66 | |
72 | 67 | |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | 68 | |
79 | 69 | |
80 | 70 | |
| ||
155 | 145 | |
156 | 146 | |
157 | 147 | |
158 | | - |
159 | | - |
160 | 148 | |
161 | 149 | |
162 | 150 | |
163 | 151 | |
164 | | - |
165 | | - |
| 152 | + |
Collapse file
google/cloud/spanner_v1/request_id_header.py
Copy file name to clipboardExpand all lines: google/cloud/spanner_v1/request_id_header.py+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
43 | 43 | |
44 | 44 | |
45 | 45 | |
46 | | - |
| 46 | + |
47 | 47 | |
48 | 48 | |
49 | 49 | |
|
Collapse file
google/cloud/spanner_v1/session.py
Copy file name to clipboardExpand all lines: google/cloud/spanner_v1/session.py+39-42Lines changed: 39 additions & 42 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
251 | 251 | |
252 | 252 | |
253 | 253 | |
254 | | - |
255 | | - |
| 254 | + |
256 | 255 | |
257 | | - |
258 | | - |
| 256 | + |
259 | 257 | |
260 | 258 | |
261 | 259 | |
| ||
317 | 315 | |
318 | 316 | |
319 | 317 | |
| 318 | + |
320 | 319 | |
321 | 320 | |
322 | | - |
323 | | - |
324 | | - |
325 | | - |
326 | | - |
327 | | - |
328 | | - |
329 | | - |
330 | | - |
331 | | - |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
332 | 333 | |
333 | 334 | |
334 | 335 | |
| ||
566 | 567 | |
567 | 568 | |
568 | 569 | |
569 | | - |
570 | | - |
571 | | - |
572 | | - |
573 | | - |
574 | | - |
575 | | - |
576 | | - |
577 | | - |
578 | | - |
579 | | - |
580 | | - |
581 | | - |
582 | | - |
| 570 | + |
| 571 | + |
| 572 | + |
| 573 | + |
| 574 | + |
| 575 | + |
| 576 | + |
| 577 | + |
| 578 | + |
| 579 | + |
| 580 | + |
| 581 | + |
583 | 582 | |
584 | 583 | |
585 | 584 | |
| ||
611 | 610 | |
612 | 611 | |
613 | 612 | |
614 | | - |
615 | | - |
616 | | - |
617 | | - |
618 | | - |
619 | | - |
620 | | - |
621 | | - |
622 | | - |
623 | | - |
624 | | - |
625 | | - |
626 | | - |
627 | | - |
| 613 | + |
| 614 | + |
| 615 | + |
| 616 | + |
| 617 | + |
| 618 | + |
| 619 | + |
| 620 | + |
| 621 | + |
| 622 | + |
| 623 | + |
| 624 | + |
628 | 625 | |
629 | 626 | |
630 | 627 | |
|
Collapse file
+8-11Lines changed: 8 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
47 | 54 | |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
| 55 | + |
59 | 56 | |
60 | 57 | |
61 | 58 | |
|
0 commit comments