Skip to content

Skip function before runtime check #410

Description

@yashvyas07

When any function mentioned in the serverless configuration is marked to be excluded the logging show it is attempting to create a layer for the lambda and then exclude.

Serverless:

newRelic:
  - ...
  - exclude:
    - storeData

Logs:

Adding NewRelic layer to checkAccountStatus
Unsupported runtime "nodejs20.x" for NewRelic layer; skipping.
Adding NewRelic layer to storeData
Unsupported runtime "nodejs20.x" for NewRelic layer; skipping.
...
Excluded function storeData; skipping

Calling shouldSkipFunction function earlier in addLayer could help set the correct messaging.

Metadata

Metadata

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