feat(aws-lambda): Add HTTP trigger attributes

Aberta
#8,082 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
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
aws, python

Direção de pesquisa

Start with the AWS Lambda integration and the related work in getsentry/sentry-python#8081, which this issue depends on. Map the API Gateway v1/v2, Function URL, and ALB event fields to the listed HTTP attributes, including their data collection filters. Done means those attributes and the specified 4xx/5xx behavior are covered; the issue names no files or tests.

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

Descrição

Feature Integration: AWS Lambda Python Traces

HTTP-triggered attributes have no attributes yet; so add the following attributes

API Gateway v1/v2, Function URL, ALB

  • http.request.method: v1 httpMethod, v2 requestContext.http.method
  • http.route: v1 resource, v2 routeKey without the method (not $default)
  • url.scheme, url.path, url.query / url.full, server.address, user_agent.original
  • client.address
  • http.request.header.<name>: also merging multiValueHeaders; v2 cookies
  • http.response.status_code: the handler's returned statusCode; 5xx sets error.type and error status, 4xx doesn't

Following attributes can be filtered using data collection settings: client.address behind user_info, headers behind http_headers, cookies behind cookies, the query behind url_query_params, the body behind http_bodies.

Depends on getsentry/sentry-python#8081

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.