@effect/io
Advanced tools
Comparing version 0.29.4 to 0.29.5
@@ -220,3 +220,3 @@ "use strict"; | ||
exports.runtime = runtime; | ||
const defaultRuntimeFlags = /*#__PURE__*/runtimeFlags.make(runtimeFlags.Interruption, runtimeFlags.CooperativeYielding); | ||
const defaultRuntimeFlags = /*#__PURE__*/runtimeFlags.make(runtimeFlags.Interruption, runtimeFlags.CooperativeYielding, runtimeFlags.RuntimeMetrics); | ||
/** @internal */ | ||
@@ -223,0 +223,0 @@ exports.defaultRuntimeFlags = defaultRuntimeFlags; |
@@ -449,2 +449,22 @@ /** | ||
export declare const unsafeSnapshot: (_: void) => HashSet.HashSet<MetricPair.MetricPair.Untyped>; | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
export declare const fiberStarted: Metric.Counter<number>; | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
export declare const fiberSuccesses: Metric.Counter<number>; | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
export declare const fiberFailures: Metric.Counter<number>; | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
export declare const fiberLifetimes: Metric<MetricKeyType.MetricKeyType.Histogram, number, MetricState.MetricState.Histogram>; | ||
//# sourceMappingURL=Metric.d.ts.map |
@@ -6,3 +6,4 @@ "use strict"; | ||
}); | ||
exports.zip = exports.withNow = exports.withConstantInput = exports.value = exports.update = exports.unsafeSnapshot = exports.trackSuccessWith = exports.trackSuccess = exports.trackErrorWith = exports.trackError = exports.trackDurationWith = exports.trackDuration = exports.trackDefectWith = exports.trackDefect = exports.trackAll = exports.timerWithBoundaries = exports.timer = exports.taggedWithLabelsInput = exports.taggedWithLabels = exports.tagged = exports.sync = exports.summaryTimestamp = exports.summary = exports.succeed = exports.snapshot = exports.set = exports.mapType = exports.map = exports.make = exports.incrementBy = exports.increment = exports.histogram = exports.globalMetricRegistry = exports.gauge = exports.fromMetricKey = exports.frequency = exports.counter = exports.contramap = exports.MetricTypeId = void 0; | ||
exports.zip = exports.withNow = exports.withConstantInput = exports.value = exports.update = exports.unsafeSnapshot = exports.trackSuccessWith = exports.trackSuccess = exports.trackErrorWith = exports.trackError = exports.trackDurationWith = exports.trackDuration = exports.trackDefectWith = exports.trackDefect = exports.trackAll = exports.timerWithBoundaries = exports.timer = exports.taggedWithLabelsInput = exports.taggedWithLabels = exports.tagged = exports.sync = exports.summaryTimestamp = exports.summary = exports.succeed = exports.snapshot = exports.set = exports.mapType = exports.map = exports.make = exports.incrementBy = exports.increment = exports.histogram = exports.globalMetricRegistry = exports.gauge = exports.fromMetricKey = exports.frequency = exports.fiberSuccesses = exports.fiberStarted = exports.fiberLifetimes = exports.fiberFailures = exports.counter = exports.contramap = exports.MetricTypeId = void 0; | ||
var fiberRuntime = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/io/internal_effect_untraced/fiberRuntime")); | ||
var internal = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/io/internal_effect_untraced/metric")); | ||
@@ -333,3 +334,27 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
const unsafeSnapshot = internal.unsafeSnapshot; | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
exports.unsafeSnapshot = unsafeSnapshot; | ||
const fiberStarted = fiberRuntime.fibersStarted; | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
exports.fiberStarted = fiberStarted; | ||
const fiberSuccesses = fiberRuntime.fiberSuccesses; | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
exports.fiberSuccesses = fiberSuccesses; | ||
const fiberFailures = fiberRuntime.fiberFailures; | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
exports.fiberFailures = fiberFailures; | ||
const fiberLifetimes = fiberRuntime.fiberLifetimes; | ||
exports.fiberLifetimes = fiberLifetimes; | ||
//# sourceMappingURL=Metric.js.map |
{ | ||
"name": "@effect/io", | ||
"version": "0.29.4", | ||
"version": "0.29.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -299,3 +299,4 @@ import * as Context from "@effect/data/Context" | ||
runtimeFlags.Interruption, | ||
runtimeFlags.CooperativeYielding | ||
runtimeFlags.CooperativeYielding, | ||
runtimeFlags.RuntimeMetrics | ||
) | ||
@@ -302,0 +303,0 @@ |
@@ -9,2 +9,3 @@ /** | ||
import type * as Effect from "@effect/io/Effect" | ||
import * as fiberRuntime from "@effect/io/internal_effect_untraced/fiberRuntime" | ||
import * as internal from "@effect/io/internal_effect_untraced/metric" | ||
@@ -596,1 +597,26 @@ import type * as MetricBoundaries from "@effect/io/Metric/Boundaries" | ||
export const unsafeSnapshot: (_: void) => HashSet.HashSet<MetricPair.MetricPair.Untyped> = internal.unsafeSnapshot | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
export const fiberStarted: Metric.Counter<number> = fiberRuntime.fibersStarted | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
export const fiberSuccesses: Metric.Counter<number> = fiberRuntime.fiberSuccesses | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
export const fiberFailures: Metric.Counter<number> = fiberRuntime.fiberFailures | ||
/** | ||
* @since 1.0.0 | ||
* @category metrics | ||
*/ | ||
export const fiberLifetimes: Metric<MetricKeyType.MetricKeyType.Histogram, number, MetricState.MetricState.Histogram> = | ||
fiberRuntime.fiberLifetimes |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6960945
119447