observe:@observe是Python装饰器

时间:2021-03-18 01:42:42
【文件属性】:
文件名称:observe:@observe是Python装饰器
文件大小:32KB
文件格式:ZIP
更新时间:2021-03-18 01:42:42
notifications monitoring logs Python 观察 @observe是Python方法的修饰符,它使Python开发人员可以收集有关修饰后的方法的所有基本指标,生成统一的日志和关于失败的易于通知的通知。 日志,指标和通知 所有日志,指标和通知均分为三类: 默认值:未引发任何异常。 预期:引发了预期的异常。 意外异常:引发了意外/未处理的异常 默认 # optional: debug logs logger . debug ( "... start." ) logger . debug ( "... finished." ) # increments statsd . increment ( "%s.start" % metric , 1 , tags = all_tags ) statsd . increment ( "%s.finished" % metric , 1 , tags = all_tags ) # timing
【文件预览】:
observe-main
----.gitignore(229B)
----Makefile(715B)
----bin()
--------install.sh(222B)
--------unit-test.sh(331B)
--------lint.sh(365B)
----.atlassian()
--------OWNER(10B)
----observe()
--------__init__.py(0B)
--------decorator.py(5KB)
--------lib()
----CONTRIBUTING.md(1KB)
----CODE_OF_CONDUCT.md(2KB)
----LICENCE(11KB)
----setup.cfg(83B)
----.github()
--------workflows()
--------actions()
----README.md(3KB)
----.pylintrc(14KB)
----requirements()
--------requirements.txt(184B)
--------test.txt(686B)
--------observe.txt(476B)
--------test.in(23B)
--------auto.txt(720B)
--------observe.in(17B)
--------requirements.in(36B)
--------auto.in(29B)
----test()
--------unit()

网友评论