feat(aws-lambda): Add HTTP trigger attributes

Offen
#8,082 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
aws, python

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
2.2k
Forks
713
Ø Merge
1 T. 16 Min.
Gemergte PRs (30 T.)
113

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus getsentry/sentry-python

Alle Issues in getsentry/sentry-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.