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

Introduction

With the OpenTelemetry APIs of FunctionGraph, extensions can receive telemetry data from FunctionGraph when functions are initialized or invoked, and collect logs generated during function and extension execution.

During execution, send a subscription request from an extension to the specified OpenTelemetry API. FunctionGraph then automatically sends all telemetry data to your extension for processing, for example, storing to OBS, writing to files, or forwarding to other observability tools.

Extensions can subscribe to three different telemetry streams using OpenTelemetry APIs:

  1. Platform: Logs, metrics, and traces, which describe events and errors related to the runtime lifecycle, extension lifecycle, and function invocation.
  2. Function: Custom logs generated by function code.
  3. Extension: Custom logs generated by extension code.