UNPKG

@openfga/sdk

Version:

JavaScript and Node.js SDK for OpenFGA

28 lines (27 loc) 1.09 kB
/** * JavaScript and Node.js SDK for OpenFGA * * API version: 1.x * Website: https://openfga.dev * Documentation: https://openfga.dev/docs * Support: https://openfga.dev/community * License: [Apache-2.0](https://github.com/openfga/js-sdk/blob/main/LICENSE) * * NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT. */ import { Counter, Histogram, Meter } from "@opentelemetry/api"; import { TelemetryCounter } from "./counters"; import { TelemetryHistogram } from "./histograms"; export declare enum TelemetryMetric { CounterCredentialsRequest = "counterCredentialsRequest", HistogramRequestDuration = "histogramRequestDuration", HistogramQueryDuration = "histogramQueryDuration" } export declare class MetricRecorder { private _meter; private _counters; private _histograms; meter(): Meter; counter(counter: TelemetryCounter, value?: number, attributes?: Record<string, any>): Counter; histogram(histogram: TelemetryHistogram, value?: number, attributes?: Record<string, any>): Histogram; }