Commit 64c1bd7
Change Python OTEL configuration to environment variables without requiring opentelemetry-instrument (#11879)
* Initial plan
* Change Python OTEL configuration to environment variables
Co-authored-by: davidfowl <[email protected]>
* Remove instrumentationExecutable detection, unconditionally add OTEL support
Co-authored-by: davidfowl <[email protected]>
* Remove publish mode check for OTEL environment variables
Co-authored-by: davidfowl <[email protected]>
* Fix Python tests to work with unconditional WithOtlpExporter
Co-authored-by: davidfowl <[email protected]>
* Revert cd6600a and update GetEnvironmentVariableValuesAsync to accept IServiceProvider
Co-authored-by: davidfowl <[email protected]>
* Refactor GetEnvironmentVariableValuesAsync to remove IServiceProvider parameter and use EmptyServiceProvider instead
* Refactor environment variable retrieval to use EnvironmentVariableEvaluator and remove EmptyServiceProvider
* Apply suggestions from code review
* Update src/Aspire.Hosting.Python/PythonAppResourceBuilderExtensions.cs
* Update src/Aspire.Hosting.Python/PythonAppResourceBuilderExtensions.cs
* Update src/Aspire.Hosting.Python/PythonAppResourceBuilderExtensions.cs
* Change OTEL_LOGS_EXPORTER from "otlp,console" to "otlp" and update tests
Co-authored-by: davidfowl <[email protected]>
* Apply comments from code review
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: davidfowl <[email protected]>
Co-authored-by: David Fowler <[email protected]>
Co-authored-by: Eric Erhardt <[email protected]>1 parent 72d0399 commit 64c1bd7
File tree
2 files changed
+36
-40
lines changed- src/Aspire.Hosting.Python
- tests/Aspire.Hosting.Python.Tests
2 files changed
+36
-40
lines changedLines changed: 11 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | 122 | | |
124 | | - | |
125 | 123 | | |
126 | | - | |
| 124 | + | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | 128 | | |
140 | 129 | | |
141 | 130 | | |
142 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
143 | 136 | | |
144 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
145 | 140 | | |
146 | 141 | | |
147 | 142 | | |
148 | | - | |
149 | | - | |
| 143 | + | |
| 144 | + | |
150 | 145 | | |
151 | 146 | | |
152 | 147 | | |
| |||
168 | 163 | | |
169 | 164 | | |
170 | 165 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | 166 | | |
184 | 167 | | |
185 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
74 | 83 | | |
75 | 84 | | |
76 | 85 | | |
| |||
118 | 127 | | |
119 | 128 | | |
120 | 129 | | |
121 | | - | |
| 130 | + | |
| 131 | + | |
122 | 132 | | |
123 | 133 | | |
124 | 134 | | |
| |||
172 | 182 | | |
173 | 183 | | |
174 | 184 | | |
175 | | - | |
| 185 | + | |
176 | 186 | | |
177 | 187 | | |
178 | 188 | | |
179 | 189 | | |
180 | 190 | | |
181 | 191 | | |
| 192 | + | |
182 | 193 | | |
183 | 194 | | |
184 | | - | |
| 195 | + | |
185 | 196 | | |
186 | 197 | | |
187 | 198 | | |
188 | | - | |
| 199 | + | |
189 | 200 | | |
190 | 201 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
199 | 212 | | |
200 | 213 | | |
201 | 214 | | |
| |||
0 commit comments