Commit 911bcd8
authored
fix(storage): monitored resource detection (#11197)
* fix(storage): populate monitored resource correctly
* refactor with additional integration tests
* refactor initialization of metricsContext
* remove exporter experimental option and add manual reader for tests
* go mod tidy
* dependency inject gcp detector for testing
* revert removal of metricExporter option
* revert changes to metricExporter option tests
* use struct embedding
* pass in resource correctly to exporter
* update test using resource value
* add tests checking resource values
* add option to disable exporter in unit tests
* address feedback
* use project-id not project_id...1 parent a3cb8c4 commit 911bcd8
File tree
6 files changed
+404
-198
lines changed- storage
6 files changed
+404
-198
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
121 | 140 | | |
122 | 141 | | |
123 | 142 | | |
| |||
0 commit comments