Updated on 2023-04-27 GMT+08:00

Introduction

Extension APIs integrate your FunctionGraph functions with monitoring, observability, security, and supervision tools for control in all phases of the function lifecycle. For example, diagnostic information is collected before, during, and after function invocation; your code is automatically checked without changing the code; the configuration is obtained before function invocation; alarms are sent through the security agent; and telemetry data is asynchronously sent to a custom destination.

Extensions run as independent processes in the function execution environment. You can write extensions using languages different from those of your functions. Compiled languages are recommended. In this case, an extension is an independent binary file and compatible with the supported runtimes. You can also use a non-compiled language that is compatible with the runtime of your function.

  • HTTP and event functions support extensions, while functions using custom images do not.
  • Add an extension to a function by making the extension a dependency.