-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Checklist
- I have looked into the README and have not found a suitable solution or answer.
- I have looked into the documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have upgraded to the latest version of OpenFGA and the issue still persists.
- I have searched the Slack community and have not found a suitable solution or answer.
- I agree to the terms within the OpenFGA Code of Conduct.
Description
When recording the counter for the credentials request, no attributes are sent.
Notice the empty attributes map sent on to record the metric: https://github.com/openfga/java-sdk/blob/main/src/main/java/dev/openfga/sdk/api/auth/OAuth2Client.java#L69
Attributes are created in HttpRequestAttempt, but they are not sent back to exchangeToken() and included in the call to record the counter.
Expectation
Any configured attributes, or the default attributes if not configured, should be sent with the credentials request.
Reproduction
Given the default telemetry configuration
When a credentials exchange request is executed
No attributes are sent with the fga-client.credentials.request counter metric
OpenFGA SDK version
0.8.0
OpenFGA version
any
SDK Configuration
no config
Logs
No response
References
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Backlog