From 37c4aaf335c7f225d029fa5e16c9279fe904f1dd Mon Sep 17 00:00:00 2001 From: Jim Anderson Date: Tue, 17 Sep 2024 13:17:35 -0500 Subject: [PATCH] fix bad import in test --- tests/index.test.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/index.test.ts b/tests/index.test.ts index d6d927e..a682a3d 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -25,6 +25,7 @@ import { FgaApiValidationError, FgaValidationError, OpenFgaApi, + TelemetryAttribute, TelemetryConfiguration, TelemetryMetricConfiguration, TelemetryMetricsConfiguration, @@ -38,7 +39,6 @@ import { OPENFGA_API_TOKEN_ISSUER, } from "./helpers/default-config"; import { getNocks } from "./helpers/nocks"; -import { TelemetryAttribute } from "../dist"; const nocks = getNocks(nock); nock.disableNetConnect(); @@ -262,10 +262,26 @@ describe("OpenFGA SDK", function () { // metricConfig, // ); // const telConfig = new TelemetryConfiguration(metricsConfig); + + // const telemetryConfig = { + // metrics: { + // counterCredentialsRequest: { + // attributes: new Set + // }, + // histogramRequestDuration: { + // attributes: new Set + // }, + // histogramQueryDuration: { + // attributes: new Set + // } + // } + // }; + expect( () => new OpenFgaApi({ ...baseConfig, + // telemetry: telemetryConfig, // telemetry: telConfig, telemetry: { metrics: {