-
To incorporate the OpenTelemetry Lambda layer into your Node.js functions, include the following layers in your functions.
region - set your region
version - use version from latest OTel Lambda release
amd64|arm64 - choose architecture
-
In Atatus Dashboard navigate to Settings tab, then click on Account Settings. From there, go to API Keys. You can either generate a new API key or copy an existing one. After obtaining the API key, you’ll need to set it in the
atatus-collector.yamlfile under the exporterotlphttpheader (see step 3). -
Setup collector using the below steps
-
Establish an environment variable named
OPENTELEMETRY_COLLECTOR_CONFIG_FILE=/var/task/atatus-collector.yamlwithin your Lambda function. This action instructs the extension on the location of the collector configuration. -
You can optionally set the tags
(env, service, and version - Optional)in the processors resource attributes. This helps with organizing all functions within a unified service, making filtering easier. -
Please create a configuration file named as
atatus-collector.yamlbelow: a. Placeatatus-collector.yamlin the root directory.b. Configure the lambda function by setting the environment variables in the corresponding Serverless Environment.
-
Establish an environment variable named
AWS Lambda
AWS Lambda Serverless Monitoring in Node.js
Monitor your AWS Lambda functions using Atatus Serverless Monitoring by adding OTEL Lambda layer to your Node.js functions. Start monitoring now!
Below we shall see the steps for AWS Node.js Serverless Auto-Instrumentation Monitoring in Atatus using OTel Lambda Layer.