Metric support provides essential information regarding the performance of your Node.js Lambda functions, which translate to carefully calculated statistics. You can examine:
Process Memory Usages
By simply importing thundra from @thundra/core, all the metrics mentioned above are ready to be collected; however, metrics are disabled by default. You need to enable them programmatically or through environment variables.
Enabling Sending Metrics
Metric monitoring can be enabled by setting the relevant configuration parameters. These parameters include the thundra_agent_lambda_metric_disable environment variable and the disable_metric object initialization parameter.
Enabling metric programmatically on agent initialization