Skip to content

Web Adapter startup process breaks other lambda layers that modify startup #411

@rposbo-selfridges

Description

@rposbo-selfridges

Hi,

We're using the Dynatrace OneAgent lambda layer to integrate nextjs applications, as containers, hosted in aws lambdas with our observability platform.

Unfortunately, this has proven impossible as the web adapter seems to trigger the lambda directly instead of modifying the runtime startup (?) - this is a bit beyond me, so the feedback from Dynatrace tech team is below:

  • the aws lambda web adapter starts the Lambda runtime by itself - this is inconsistent with the AWS Lambda standards; we adhere to these standards by modifying the runtime startup to start using our agent instead.

Is this something that can be altered such that both the web adapter and the dynatrace one agent lambda layer can work side by side?

Expected Functionality

An AWS lambda hosting a nextjs application, as a container, using both the aws lambda adapter and the Dynatrace OneAgent lambda layer, results in 1) a nextjs application that can both serve web requests, and 2) lambda telemetry reported to Dynatrace without instrumentation within the application code itself

Actual Functionality

An AWS lambda hosting a nextjs application, as a container, using both the aws lambda adapter and the Dynatrace OneAgent lambda layer, results in only a nextjs application that can serve web requests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions