Closed rittneje closed 2 months ago
warnings.warn((
'The lambda_handler API has been deprecated. Please use the '
'APIs provided in the newrelic-lambda package.'
), DeprecationWarning)
It sounds like you're using an API that's been marked deprecated for over 4 years, so that could be part of the issue. Have you tried this with our more current lambda offerings?
We typically direct people to use our Lambda Layer which can be installed easily with the Lambda CLI.
Description
If we set
NEW_RELIC_ENABLED=0
andNEW_RELIC_SERVERLESS_MODE_ENABLED=1
, then the lambda function still emits the special NR_LAMBDA_MONITORING log at the end, which in turn triggers the log group subscription.Expected Behavior
NEW_RELIC_ENABLED=0
should entirely disable the agent, regardless ofNEW_RELIC_SERVERLESS_MODE_ENABLED
.Steps to Reproduce
Create a lambda function with the following env vars:
Your Environment Python 3.12 with v9.9.0 of this library
Additional context