You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We added ddtrace-run to our py3 + pyramid app which caused it to crash on startup with an AttributeError (module 'ddtrace.contrib.pyramid' has no attribute 'models').
The cause turned out to be a series of config.include() calls which were using relative import paths; under ddtrace, pyramid's path resolver was mapping .foo to ddtrace.contrib.pyramid.foo (i guess it changes what __main__ means?)
Switching to absolute paths fixed the issue.
The text was updated successfully, but these errors were encountered:
We added
ddtrace-run
to our py3 + pyramid app which caused it to crash on startup with anAttributeError
(module 'ddtrace.contrib.pyramid' has no attribute 'models').The cause turned out to be a series of
config.include()
calls which were using relative import paths; under ddtrace, pyramid's path resolver was mapping.foo
toddtrace.contrib.pyramid.foo
(i guess it changes what__main__
means?)Switching to absolute paths fixed the issue.
The text was updated successfully, but these errors were encountered: