Google Cloud Functions
Instrument Aspecto on Google Cloud Functions
Aspecto supports instrumenting Google Cloud Functions (GCF) using an HTTP trigger.
To do so, set up Aspecto as you'd usually do, and extract the gcf
utility:
Next, wrap your function handler definition with the returned utility. Example:
If your export is an express app, you can still wrap it with the gcf
utility, like this:
Note: if your GCF is not deployed with a package.json
file, make sure to provide the serviceName
option when initializing Aspecto.
Last updated