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:
- Before using OpenTelemetry APIs, register them with your extension by referring to the extension API description.
- Start an HttpClient on the extension to send an OpenTelemetry API registration request to FunctionGraph.
- 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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.