Instrument your serverless cloud functions with OpenTelemetry Node.js
-
If you need to add API Key to
otelwrapper.jsfile, navigate to Atatus Dashboard —> Settings —> Account Settings —> API Keys. You can either generate a new API key or copy an existing one withwrite permission. After obtaining the API key, you’ll need to set it in theotelwrapper.js. -
Create
otelwrapper.jsfile. Then add the below code: -
Add package dependencies
Add the following dependencies to your package.json
-
Add the below environment into your
serverless.yml. - Finally, Deploy your GCP cloud function.