feat(aws-lambda): Add HTTP trigger attributes

Ouverte
#8,082 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
aws, python

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Python
Étoiles
2.2k
Forks
713
Merge moyen
1 j 16 min
PR mergées (30 j)
113

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de getsentry/sentry-python

Toutes les issues de getsentry/sentry-python

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.