SQS Transport for the sentry-sdk
Project description
Simple AWS SQS sentry-sdk transport that takes ideas from https://github.com/Netflix-Skunkworks/raven-sqs-proxy
It closely follows the HTTPTransport just substituting the HTTP POST section with an SQS Send Message.
Below is an example of how to use the transport.
import sentry_sdk
from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration
from sentry_sqs_transport import SQSTransport
sentry_sdk.init(
dsn="https://00000000000000000000000000000000@sentry.example.org/11",
integrations=[AwsLambdaIntegration()],
transport=SQSTransport,
# Optional
sqs_queue_url='https://sqs.eu-west-2.amazonaws.com/000000000000/SomeQueue',
sqs_client_kwargs={'region_name': 'us-east-1'}
)
Configuration
To configure which SQS queue to use, pass sqs_queue_url into the SDK init function with the SQS queue url as the value. You can also set SENTRY_SQS_QUEUE_URL envrionment variable.
The parameter sqs_client_kwargs should be a dictionary and will be passed into the boto3 client like boto3.client('sqs', **sqs_client_kwargs).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sentry-sqs-transport-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0463053159d614943acb51d43dd92af68cdbf50bfd6004f3edc7cf646b877198 |
|
MD5 | 64c1cf18d7d16270fad3d28ff42463c1 |
|
BLAKE2b-256 | c3742b835dc8cdf51f5d885130eeab5da88a5de78712e2807f15edc058d69482 |
Close
Hashes for sentry_sqs_transport-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ead719fb7e52f38b99d995c077456ec256d0fa5b96e55e85525458ff8e21596 |
|
MD5 | 0a92ed9fc964b2d0e3cfd9056e4b81b6 |
|
BLAKE2b-256 | 6337b3c1bbbe33e749578f3df8bbc5e2154aadc84681d38d9dcacea0f582fa72 |