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.
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:
Logs:
Calling
shouldSkipFunctionfunction earlier inaddLayercould help set the correct messaging.