def run(self):
        major_version = sys.version_info[0]
        if self.major_versions and major_version not in self.major_versions:
            logger.warn("Disabling %s since it doesn't support python %s.x", self.__class__, major_version)
            return

        instrument_methods(self.wrapped_methods)
示例#2
0
 def run(self):
     try:
         instrument_methods(self._wrapped)
         logger.debug('django db instrumentation complete')
     except:
         logger.exception('problem with django db instrumentation')
         raise
示例#3
0
 def run(self):
     try:
         instrument_methods(self._wrapped)
         logger.debug("django instrumentation complete")
     except:
         logger.exception("problem with django instrumentation")
         raise
    def run(self):
        major_version = sys.version_info[0]
        if self.major_versions and major_version not in self.major_versions:
            logger.warn("Disabling %s since it doesn't support python %s.x",
                        self.__class__, major_version)
            return

        instrument_methods(self.wrapped_methods)
示例#5
0
    def run(self):
        major_version = sys.version_info[0]
        if self.major_versions and major_version not in self.major_versions:
            logger.warn("Disabling %s since it doesn't support python %s.x",
                        self.__class__, major_version)
            return

        # instrument static resources
        override_classes(self.overridden_classes, self.wrapped)
        instrument_methods(self.wrapped)
 def run(self):
     # instrument static resources
     override_classes(self.overridden_classes, self.wrapped)
     instrument_methods(self.wrapped)