Skip to content

Unnecessary Telemetry Objects Created #209

@jimmyjames

Description

@jimmyjames

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

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions