-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Expected Behavior
Lambdas invoked by a VPC Lattice service should include that information on the invoccations tab in the Servlerless view.
Example for a Function URL trigger:
Actual Behavior
No trigger is detected for VPC Lattice invocations
Steps to Reproduce the Problem
- Create a Lambda with a VPC Lattice trigger
- Invoke the Lambda
- Observe that no trigger information is shown in Datadog
Specifications
- Datadog Lambda Layer version: 132
- Node version: 22
Stacktrace
N/A
Additional Context
The existing trigger extraction is in
datadog-lambda-js/src/trace/trigger.ts
Lines 63 to 65 in 940dacf
| function extractALBEventARN(event: ALBEvent) { | |
| return event.requestContext.elb.targetGroupArn; | |
| } |
The format for the Lattice event is here: https://docs.aws.amazon.com/vpc-lattice/latest/ug/lambda-functions.html#receive-event-from-service
Ideally, serviceArn or targetGroupArn would be used to associate the VPC Lattice Service with the Lambda.
Also I suspect
datadog-lambda-js/src/trace/trigger.ts
Lines 31 to 37 in 940dacf
| function isHTTPTriggerEvent(eventSource: string | undefined) { | |
| return ( | |
| eventSource === "api-gateway" || | |
| eventSource === "application-load-balancer" || | |
| eventSource === "lambda-function-url" | |
| ); | |
| } |
mugli and michaelpearce-cf
Metadata
Metadata
Assignees
Labels
No labels