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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb0301bedb74f76cf70dfb63c771af793fd895fbcecc32930089a322a02f9981 |
|
MD5 | 57eaa48bb04f43e7bd869158d9e85470 |
|
BLAKE2b-256 | 4ae475355e3c02d37fee66eb84d406c1ec32f604d920464ba4024fc10983082c |
Close
Hashes for sentry_sqs_transport-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91f9eeb7c7f32bf73c4c823a2aeae38c48793474ff2081004782f34d4e6a12c9 |
|
MD5 | c5bb05fa85a23a6e67b08ac5dd0ae67b |
|
BLAKE2b-256 | aa28c671f3e357c44e9878e98f665a7ad0c988af6d72f9bb761a9e0ccdb0aba0 |