All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.openfga.sdk.telemetry.Telemetry Maven / Gradle / Ivy

Go to download

This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).

There is a newer version: 0.7.2
Show newest version
package dev.openfga.sdk.telemetry;

import dev.openfga.sdk.api.configuration.Configuration;

/**
 * The Telemetry class provides access to telemetry-related functionality.
 */
public class Telemetry {
    private Configuration configuration = new Configuration();
    private Metrics metrics = null;

    public Telemetry(Configuration configuration) {
        this.configuration = configuration;
    }

    /**
     * Returns a Metrics singleton for collecting telemetry data.
     * If the Metrics singleton has not previously been initialized, it will be created.
     */
    public Metrics metrics() {
        if (metrics == null) {
            metrics = new Metrics(this.configuration);
        }

        return metrics;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy