Checklist
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
Checklist
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 toexchangeToken()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.requestcounter metricOpenFGA SDK version
0.8.0
OpenFGA version
any
SDK Configuration
no config
Logs
No response
References
No response