python应用程序跟踪程序
slowjam的Python项目详细描述
slowjam是一个易于使用的python应用程序跟踪程序。
听这个:
>>>importrequests>>>fromslowjam.traceimportspan>>>fromslowjam.contextimportslowjam_context>>>slowjam_context.start('my_application',extras={'http':True})>>>withspan('listen',extras={'deylay':3}):>>>resp=requests.get('https://httpbin.org/delay/3')>>>withspan('request.origin'):>>>origin=resp.json().get('origin')>>>origin.split('.')>>>profile=slowjam_context.stop()>>>ifprofile:>>>print''>>>printunicode(profile)>>>print''timeexectimeevent----------------------------------------------------0ms+my_application[http=True]0ms|+listen[deylay=3]8039ms(+0ms)||=request.decode(+8039ms)|+(+8039ms)+
慢卡让你很容易很快就得到反馈,但也有一些额外的 努力与其他监控工具无缝集成,如statsd, 石墨和logstash。
功能支持
- 应用程序跟踪
- 功能计时
- 可用输出
- 石墨集成
可能发生
- OpenTracing。欢迎公关
安装
要安装slowjam,只需:
$ pip install slowjam ✨?✨
历史记录
这最初是由app.net在其开源版本Alpha中开源的。