(
status_code: str,
)
| 373 | |
| 374 | |
| 375 | def parse_status_code_to_enum( |
| 376 | status_code: str, |
| 377 | ): |
| 378 | try: |
| 379 | return OTelStatusCode(status_code) |
| 380 | |
| 381 | except ValueError as e: |
| 382 | log.error(f"Unsupported status_code value: {status_code}") |
| 383 | |
| 384 | raise FilteringException( |
| 385 | f"Unsupported status_code value: {status_code}", |
| 386 | ) from e |
| 387 | |
| 388 | |
| 389 | def parse_value_to_enum(value: str, enum: type) -> type: |
nothing calls this directly
no test coverage detected