Name: raven-sqs-proxy
Owner: Netflix-Skunkworks
Description: A Raven/Sentry SQS message proxy forwarder
Created: 2017-09-27 22:56:46.0
Updated: 2018-04-28 06:56:11.0
Pushed: 2017-09-29 17:36:06.0
Homepage: null
Size: 10
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a very simple Python project that polls SQS for Sentry messages and then proxies them over to a Sentry instance.
This is based on the implementation of the Sentry.IO SQSTransport
as implemented in this PR to raven-python.
The first part in using this is to make use of the Sentry SQSTransport
implemented in the getsentry/raven-python
project.
This will have an instance, lambda function, or anything with AWS credentials to an SQS queue to forward all Sentry messages to SQS. This project will then listen for those messages on the queue and simply proxy them over to Sentry for storage.
For sending to the SQS queue, you will need the following:
GetQueueUrl
SendMessage
raven.base import Client
raven.transport.sqs import SQSTransport
S details that are required are:
`sqs_region`
`sqs_account` This is the 12 digit AWS account number
`sqs_name`
ry_client = Client(dsn="https://some-sentry-dsn?sqs_region=REGION&sqs_account=ACCOUNT_NUMsqs_name=QUEUE_NAME",
transport=SQSTransport)
For retrieving messages:
GetQueueUrl
SendMessage
DeleteMessage
pip install raven_sqs_proxy
to install thissqsproxy --queue-name NAME-OF-QUEUE --queue-region QUEUE-REGION --queue-account AWS_ACCOUNT_ID_OF_QUEUE
That's it.