UNPKG

enhanced-adot-node-autoinstrumentation

Version:

This package provides Amazon Web Services distribution of the OpenTelemetry Node Instrumentation, which allows for auto-instrumentation of NodeJS applications.

26 lines 813 B
"use strict"; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 Object.defineProperty(exports, "__esModule", { value: true }); exports.Statistics = void 0; class Statistics { constructor(requestCount = 0, sampleCount = 0, borrowCount = 0) { this.RequestCount = requestCount; this.SampleCount = sampleCount; this.BorrowCount = borrowCount; } getStatistics() { return { RequestCount: this.RequestCount, SampleCount: this.SampleCount, BorrowCount: this.BorrowCount, }; } resetStatistics() { this.RequestCount = 0; this.SampleCount = 0; this.BorrowCount = 0; } } exports.Statistics = Statistics; //# sourceMappingURL=statistics.js.map