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

Using OpenTelemetry APIs with an Extension

Telemetry is a special extension, and can be enabled only after the following operations are performed in the extension process:

  1. Before using OpenTelemetry APIs, register them with your extension by referring to the extension API description.
  2. Start an HttpClient on the extension to send an OpenTelemetry API registration request to FunctionGraph.
  3. Create an HttpServer (telemetry listener) to receive telemetry data from FunctionGraph for custom processing.

    Only one telemetry extension can be created. Similar to the extension API, the OpenTelemetry API must also be within 127.0.0.1:8081 and 127.0.0.1:8090.

Example telemetry extension: Telemetry.zip