opentelemetry-python-contrib/opentelemetry-instrumentation/tests
Phillip Verheyden b7301823a0
Allow reraising the root exception if instrumentation fails (#3545)
* Allow reraising the root exception if instrumentation fails

I would rather completely fail startup in my services if instrumentation fails for whatever reason instead of just logging an exception and continuing.

Use case:

from opentelemetry import autoinstrumentation

autoinstrumentation.initialize(swallow_exceptions=False)

* Fix lint

* Type hinting, re-raise original exception

* One more type hint to indicate None return

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2025-06-04 08:44:45 +00:00
..
auto_instrumentation Allow reraising the root exception if instrumentation fails (#3545) 2025-06-04 08:44:45 +00:00
__init__.py Add instrumentation and distro packages (#738) 2021-10-14 20:35:28 +00:00
test_bootstrap.py opentelemetry-instrumentation: make it easier to use bootstrap with custom values (#2918) 2024-10-24 09:34:54 -07:00
test_dependencies.py Make auto instrumentation use the same dependency resolver as manual instrumentation does (#3202) 2025-04-08 15:11:09 +02:00
test_distro.py Introducing ruff as linter and formatter (basic setup) (#2921) 2024-10-23 10:54:14 -07:00
test_instrumentor.py autoinstrumentation: don't print duplicated conflict log error message (#3432) 2025-04-18 16:53:35 +00:00
test_propagators.py Sync with sdk setup from setUpClass to setUp (#1193) 2022-07-19 02:02:13 +05:30
test_semconv.py prepare semconv utilities to support database stability opt-in (#3111) 2024-12-17 09:58:04 -08:00
test_utils.py opentelemetry-instrumentation: add unwrapping from dotted paths strings (#2919) 2024-10-24 13:19:29 -07:00