openfga / js-sdk

OpenFGA SDK for node.js and JavaScript - https://www.npmjs.com/package/@openfga/sdk
https://openfga.dev
Apache License 2.0
51 stars 14 forks source link

Report a per-http call metric #158

Open ryanpq opened 2 months ago

ryanpq commented 2 months ago

Checklist I agree to the terms within the OpenFGA Code of Conduct. Describe the problem you'd like to have solved Right now, the metrics we emit are per-SDK method call at the API level (e.g. BatchCheck is multiple metrics for each underlying Check).

Users want to keep track of each underlying http call

Describe the ideal solution We should expose another metric fga-client.http_request.duration that is emitted per-http request sent by the SDK

Alternatives and current workarounds No response

References No response

Additional context Part of https://github.com/openfga/sdk-generator/issues/418

sahil9001 commented 1 month ago

Hey! Can you please assign this to me?

samuelIkoli commented 1 month ago

Please assign this to me!