aws / aws/aws-lambda-runtime-interface-emulator

Support X-Ray locally

Offen
#56 0 Kommentare 6 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Go
Sterne
1.1k
Forks
118
Ø Merge
42 Min.
Gemergte PRs (30 T.)
2

Beschreibung

According to the README:
> The component does _not_ support X-ray and other Lambda integrations locally.

So...how hard would it be to add this support for local X-Ray integration?

I think the primary use case for this would be to allow functions built with the SAM CLI that utilize X-Ray (e.g., with `AWSXRay.captureAWSv3Client`) to run locally. Not having this integration requires annoying hacks to import or not import the X-Ray SDK based on where the function is deployed. For more info, and to add some support to my request, please have a look at [this issue](https://github.com/aws/aws-sam-cli/issues/217) in the SAM CLI repo, where people have been ranting about this feature since 2017. 😅

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit der README-Aussage, dass lokale X-Ray- und andere Lambda-Integrationen nicht unterstützt werden, und lies anschließend den verlinkten SAM CLI issue #217, um den bisherigen Kontext und das angeforderte Verhalten zu verstehen. Definiere den Umfang der lokalen X-Ray-Integration und validiere ihn anhand einer SAM CLI-Funktion, die AWSXRay.captureAWSv3Client verwendet; als abgeschlossen gilt dies, wenn diese Funktion lokal ohne bedingte X-Ray SDK-Imports ausgeführt werden kann.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, go
Bereich
backend, cloud, observability
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

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