Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 24d41ed

Browse files
stewartreichlingliyanhui1228
authored andcommitted
Log a detailed exception when integration fails (#284)
1 parent 2bc3745 commit 24d41ed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

opencensus/trace/config_integration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ def trace_integrations(integrations, tracer=None):
3737
module = importlib.import_module(path_to_module)
3838
module.trace_integration(tracer=tracer)
3939
integrated.append(item)
40-
except Exception:
40+
except Exception as e:
4141
log.warning(
4242
'Failed to integrate module: {}, supported integrations are {}'
4343
.format(
4444
item,
4545
', '.join(str(x) for x in SUPPORTED_INTEGRATIONS)))
46+
log.warning('{}'.format(e))
4647

4748
return integrated

0 commit comments

Comments
 (0)