This repository was archived by the owner on Dec 23, 2023. It is now read-only.
Commit 81225af
authored
fix: Shutdown Stackdriver MetricServiceClient properly (#2091)
Using the default configuration of StackdriverStatsConfiguration, a
MetricServiceClient is initialized by the StackdriverStatsExporter.
This client was never closed, this will be done now when the
.unregister() method is called on the exporter.
If a custom MetricServiceStub is given by the user, it will *not* be
closed as the user should be in charge of it.1 parent 0899c0b commit 81225af
File tree
2 files changed
+17
-4
lines changed- exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver
2 files changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
392 | 396 | | |
393 | 397 | | |
394 | 398 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
399 | 406 | | |
400 | 407 | | |
401 | 408 | | |
| |||
445 | 452 | | |
446 | 453 | | |
447 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
448 | 459 | | |
449 | 460 | | |
450 | 461 | | |
0 commit comments