Commit d7fe99e
authored
Fix creation of resources in _detector (#366)
* Fix creation of resources in _detector
We should create a Resource instance and not use Resource.create because
if we set OTEL_EXPERIMENTAL_RESOURCE_DETECTORS we will go into an
infinite loop trying to load and instantiate all the resources
detectors.
Fix #363
* Update snapshots1 parent 495e4c5 commit d7fe99e
File tree
3 files changed
+6
-35
lines changed- e2e-test-server/e2e_test_server
- opentelemetry-resourcedetector-gcp
- src/opentelemetry/resourcedetector/gcp_resource_detector
- tests/__snapshots__
3 files changed
+6
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 63 | + | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| |||
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
142 | | - | |
143 | | - | |
144 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
Lines changed: 0 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
| |||
22 | 18 | | |
23 | 19 | | |
24 | 20 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 21 | | |
30 | 22 | | |
31 | 23 | | |
| |||
46 | 38 | | |
47 | 39 | | |
48 | 40 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 41 | | |
54 | 42 | | |
55 | 43 | | |
| |||
62 | 50 | | |
63 | 51 | | |
64 | 52 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 53 | | |
70 | 54 | | |
71 | 55 | | |
| |||
78 | 62 | | |
79 | 63 | | |
80 | 64 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 65 | | |
86 | 66 | | |
87 | 67 | | |
| |||
92 | 72 | | |
93 | 73 | | |
94 | 74 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | 75 | | |
100 | 76 | | |
101 | 77 | | |
| |||
106 | 82 | | |
107 | 83 | | |
108 | 84 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 85 | | |
114 | 86 | | |
0 commit comments