Commit 6bd19c0
fix: map Python CRITICAL log level to OTel FATAL severity text (#4365)
* fix: map Python CRITICAL log level to OTel FATAL severity text in contrib handler
The OTel specification defines the severity text for the highest severity
range as "FATAL", but the contrib logging handler was passing through
Python's native "CRITICAL" level name unchanged. This mirrors the fix
made in open-telemetry/opentelemetry-python#5011 for the SDK handler.
Related: open-telemetry/opentelemetry-python#4984
* Add CHANGELOG entry for CRITICAL -> FATAL severity text mapping
* Update instrumentation/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/handler.py
---------
Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>1 parent 8f31a01 commit 6bd19c0
File tree
3 files changed
+12
-6
lines changed- instrumentation/opentelemetry-instrumentation-logging
- src/opentelemetry/instrumentation/logging
- tests
3 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| |||
0 commit comments