-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: support OpenTelemetry metrics #115
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #115 +/- ##
==========================================
+ Coverage 23.58% 25.45% +1.87%
==========================================
Files 95 102 +7
Lines 10033 10576 +543
==========================================
+ Hits 2366 2692 +326
- Misses 7412 7612 +200
- Partials 255 272 +17 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not yet implement fga_client.user right?
This is now supported 😄 |
505dbd9
to
8fba0f5
Compare
Description
Introduces OpenTelemetry metrics reporting into the SDK for specific actions. We're intentionally starting with only a few metric events that we can then grow over time.
We don't have any formal documentation for this currently. We'll write this as we roll it out across all SDKs, so here is a summary of the events and the associated attributes:
Supported Metrics
fga-client.request.duration
fga-client.query.duration
fga-client.credentials.request
Supported attributes
fga-client.response.model_id
string
fga-client.request.method
string
check
,listObjects
, ...) in camelCasefga-client.request.store_id
string
fga-client.request.model_id
string
fga-client.request.client_id
string
fga-client.user
string
fga-client.request.retries
int
http.request.resend_count
http.request.resend_count
int
http.status_code
int
http.response.status_code
http.response.status_code
int
http.method
string
http.request.method
http.request.method
string
http.host
string
url.scheme
string
http
/https
)url.full
string
user_agent.original
string
http.client.request.duration
int
http.server.request.duration
int
References
Closes #105
Review Checklist
main