I have a serverless application with instrumented lamda functions by serverless-newrelic-lambda-layers
plugin. Is it possible to add some custom events? I know that adding custom event can be done by
newrelic.agent.record_custom_event('CustomEvent', {'foo': 'bar'})
The question is: should I initialize New Relic agent fist? Isn’t it already initialized by lambda layer? If it is already initialized by lambda layer, won’t it break this initialization? Should I install newrelic
package into the virtualenv or I can use somehow newrelic
package from the lambda layer?
OR
Custom event implies custom Lambda instrumentation with newrelic
python agent and refuse of serverless-newrelic-lambda-layers
?