We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef8d841 commit 29cfe32Copy full SHA for 29cfe32
opentelemetry-instrumentation/src/opentelemetry/instrumentation/auto_instrumentation/__init__.py
@@ -135,7 +135,9 @@ def initialize(*, swallow_exceptions=True):
135
distro.configure()
136
_load_configurators()
137
_load_instrumentors(distro)
138
- except Exception as e: # pylint: disable=broad-except
+ except Exception as exc: # pylint: disable=broad-except
139
_logger.exception("Failed to auto initialize OpenTelemetry")
140
if not swallow_exceptions:
141
- raise ValueError("Failed to auto initialize OpenTelemetry") from e
+ raise ValueError(
142
+ "Failed to auto initialize OpenTelemetry"
143
+ ) from exc
0 commit comments