Build AWS e2e example app with blog scenarios

Aberta
#8,206 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
aws, python
Domínio
backend, cloud, testing

Direção de pesquisa

Start by reading scripts/aws/aws-deploy-local-layer.sh and inspect the neighboring scripts/aws/e2e/ directory. Build the manual SAM app for the listed API Gateway, Lambda, SQS, Bedrock, and DynamoDB flow, plus a verify script that checks traces through the Sentry API. Run it by hand in eu-central-1; done means each scenario reports pass/fail with a trace link. Poison and batch depend on getsentry/sentry-python#8083.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Integration: AWS Lambda Integration: Boto3 Python Tests Traces

Small SAM app in sentry-python under scripts/aws/e2e/, next to scripts/aws/aws-deploy-local-layer.sh. It's the manual end-to-end check for the 3.0 queue work and the basis for the blog post: API Gateway → intake Lambda → SQS (with DLQ) → worker Lambda → Bedrock Converse/ConverseStream → DynamoDB. A verify script checks the resulting traces through the Sentry API and prints pass/fail plus a trace link per scenario.

  • Scenarios:
    • happy: send one ticket. The request shows queue.publish. The worker shows a Bedrock Converse span (gen_ai.chat) with prompt, response and tokens.
    • stream: the same, but the worker uses ConverseStream. The Bedrock span has the streamed response and tokens.
    • poison: the worker fails on purpose. Sentry shows an error for each try. After 3 tries (default), SQS moves the message to the dead-letter queue (DLQ).
    • batch: send 10 tickets (default, SQS batch max) with one SendMessageBatch call. The queue.publish span shows a message count of 10.
    • Stretch only: in all scenarios, the worker gets a queue.process span that links to the request trace. Poison and batch only show the async story if getsentry/sentry-python#8083 lands.
  • Why in sentry-python rather than a separate repo? No new repo to request, the app is versioned with the code it checks, and agents find it next to the integration. It stays outside tests/, so tox and CI never try to reach AWS. The folder is self-contained, so a blog article can link to it directly.
  • The layer ARN is a template parameter: a branch build from aws-deploy-local-layer.sh, or the public layer.
  • Possible default: eu-central-1, Nova Micro via eu.amazon.nova-micro-v1:0. Run by hand; no CI.
Linguagem predominante
Python
Estrelas
2.2k
Forks
713
Merge médio
1d 16min
PRs com merge (30d)
113

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getsentry/sentry-python

Todas as issues de getsentry/sentry-python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.