Skip to content

Support trigger detection for VPC Lattice #707

@jamesmbourne

Description

@jamesmbourne

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:

Image

Actual Behavior

No trigger is detected for VPC Lattice invocations

Image

Steps to Reproduce the Problem

  1. Create a Lambda with a VPC Lattice trigger
  2. Invoke the Lambda
  3. 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

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

function isHTTPTriggerEvent(eventSource: string | undefined) {
return (
eventSource === "api-gateway" ||
eventSource === "application-load-balancer" ||
eventSource === "lambda-function-url"
);
}
should be updated, as this would enable HTTP Status Code information to be extracted automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions