Checklist
Description
The Java SDK creates a new Telemetry, Metrics, and all associated types for each HTTP request.
Expectation
Only one Telemetry instance should exist per SDK instance. All Telemetry operations should use the single instance.
Reproduction
Observe that new Telemetry instances are created on each HTTP request:
|
this.telemetry = new Telemetry(configuration); |
New instances are also created in OpenFgaApi and OAuth2Client.
OpenFGA SDK version
any
OpenFGA version
any
SDK Configuration
any
Logs
No response
References
Discovered while investigating #201
Checklist
Description
The Java SDK creates a new Telemetry, Metrics, and all associated types for each HTTP request.
Expectation
Only one Telemetry instance should exist per SDK instance. All Telemetry operations should use the single instance.
Reproduction
Observe that new Telemetry instances are created on each HTTP request:
java-sdk/src/main/java/dev/openfga/sdk/api/client/HttpRequestAttempt.java
Line 45 in ecef92e
New instances are also created in
OpenFgaApiandOAuth2Client.OpenFGA SDK version
any
OpenFGA version
any
SDK Configuration
any
Logs
No response
References
Discovered while investigating #201