Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export metrics #105

Closed
1 task done
rhamzeh opened this issue Jun 5, 2024 · 0 comments · Fixed by #115
Closed
1 task done

Export metrics #105

rhamzeh opened this issue Jun 5, 2024 · 0 comments · Fixed by #115
Assignees
Labels
enhancement New feature or request

Comments

@rhamzeh
Copy link
Member

rhamzeh commented Jun 5, 2024

Checklist

Describe the problem you'd like to have solved

As a consumer of the SDK, I would like to hook it to my dashboards to get data on several metrics.

Describe the ideal solution

Integrate the OpenTelemetry Go API library https://github.com/open-telemetry/opentelemetry-go

Expose only from the inner OpenFgaApi. We need to be able to get these metrics:

  • The latency of the request, split into
    • time it took since dev called the method until they get a response
    • time it took since the sdk issued a request to the API until it got a response
    • time reported by the server (query_duration_ms header)
  • Response codes
  • Error codes and method
  • Method calls

See here for examples on usage:

@rhamzeh rhamzeh added the enhancement New feature or request label Jun 5, 2024
@evansims evansims self-assigned this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants