raven python的异步传输
raven-aiohttp的Python项目详细描述
……原始:html
<;p align=“center”>;
…图片::https://sentry brand.storage.googleapis.com/sentry logo black.png
:目标:https://sentry.io
:对齐:中心
:宽度:116
:alt:sentry网站
。raw::html
<;p>;
图片::https://img.shields.io/pypi/v/raven aiohttp.svg
:目标:https://pypi.python.org/pypi/raven aiohttp
:alt:pypi页面链接--version
图片::https://travis-ci.org/getsentry/raven-aiohttp.svg?branch=master
:目标:https://travis ci.org/getsentry/raven aiohttp
…图片::https://img.shields.io/pypi/l/raven aiohttp.svg
:目标:https://pypi.python.org/pypi/raven aiohttp
:alt:pypi页面链接--bsd license
图片::https://img.shields.io/pypi/pyversions/raven aiohttp.svg
:目标:https://pypi.python.org/pypi/raven aiohttp
:alt:pypi页面链接--python版本
有关框架集成
和其他优点,请参见我们的“python文档”。
要求
==
-`raven python>;=5.4.0`
-`python>;=3.4.2`
-`aiohttp>;=2.0`
usage
=
`raven aiohttp`为'raven.client`:`aiohttpttransport`和'queuedaiohtttpttransport`提供两个基于异步的传输。
----
发送到哨兵服务器的所有消息都将由“fire and forget”生成
数量不受限制。代码块::python
所有挂起的消息都被发送
loop=asyncio.get_event_loop()
loop.run_直到完成(client.remote.get_transport().close())
queuedaiohttptransport
-
` asyncio.task`
,它从内部的“asyncio.queue`
代码块::python
import asyncio
from functools import partial
from raven import client
from raven_aiohttp import queuedaiohttptransport
client=client(transport=partial(queuedaiohttptransport,workers=5,qsize=1000))
尝试:
1/0
除了零分区错误:
client.captureException()
循环。运行直至完成(client.remote.get_transport().close())
resources
==
*`sentry`
*`python documentation`
*`issue tracker`
*`irc channel`(irc.freenode.net,`sentry)
_哨兵:https://getsentry.com/
…_ sentry python sdk:https://github.com/getsentry/raven python
。_ python文档:https://docs.getsentry.com/hosted/clients/python/
。_问题跟踪器:https://github.com/getsentry/raven aiohttp/issues
…_ irc频道:irc://irc.freenode.net/sentry
<;p align=“center”>;
…图片::https://sentry brand.storage.googleapis.com/sentry logo black.png
:目标:https://sentry.io
:对齐:中心
:宽度:116
:alt:sentry网站
。raw::html
<;p>;
图片::https://img.shields.io/pypi/v/raven aiohttp.svg
:目标:https://pypi.python.org/pypi/raven aiohttp
:alt:pypi页面链接--version
图片::https://travis-ci.org/getsentry/raven-aiohttp.svg?branch=master
:目标:https://travis ci.org/getsentry/raven aiohttp
…图片::https://img.shields.io/pypi/l/raven aiohttp.svg
:目标:https://pypi.python.org/pypi/raven aiohttp
:alt:pypi页面链接--bsd license
图片::https://img.shields.io/pypi/pyversions/raven aiohttp.svg
:目标:https://pypi.python.org/pypi/raven aiohttp
:alt:pypi页面链接--python版本
有关框架集成
和其他优点,请参见我们的“python文档”。
要求
==
-`raven python>;=5.4.0`
-`python>;=3.4.2`
-`aiohttp>;=2.0`
usage
=
`raven aiohttp`为'raven.client`:`aiohttpttransport`和'queuedaiohtttpttransport`提供两个基于异步的传输。
发送到哨兵服务器的所有消息都将由“fire and forget”生成
数量不受限制。代码块::python
所有挂起的消息都被发送
loop=asyncio.get_event_loop()
loop.run_直到完成(client.remote.get_transport().close())
queuedaiohttptransport
-
` asyncio.task`
,它从内部的“asyncio.queue`
代码块::python
import asyncio
from functools import partial
from raven import client
from raven_aiohttp import queuedaiohttptransport
client=client(transport=partial(queuedaiohttptransport,workers=5,qsize=1000))
尝试:
1/0
除了零分区错误:
client.captureException()
循环。运行直至完成(client.remote.get_transport().close())
resources
==
*`sentry`
*`python documentation`
*`issue tracker`
*`irc channel`(irc.freenode.net,`sentry)
_哨兵:https://getsentry.com/
…_ sentry python sdk:https://github.com/getsentry/raven python
。_ python文档:https://docs.getsentry.com/hosted/clients/python/
。_问题跟踪器:https://github.com/getsentry/raven aiohttp/issues
…_ irc频道:irc://irc.freenode.net/sentry