@sentry/types
Advanced tools
Comparing version 8.5.0 to 8.6.0
{ | ||
"name": "@sentry/types", | ||
"version": "8.5.0", | ||
"version": "8.6.0", | ||
"description": "Types for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
@@ -24,2 +24,4 @@ import { TraceContext } from './context'; | ||
timezone?: string; | ||
failure_issue_threshold?: number; | ||
recovery_threshold?: number; | ||
}; | ||
@@ -51,6 +53,6 @@ contexts?: { | ||
timezone?: SerializedMonitorConfig['timezone']; | ||
failure_issue_threshold?: number; | ||
recovery_threshold?: number; | ||
failureIssueThreshold?: SerializedMonitorConfig['failure_issue_threshold']; | ||
recoveryThreshold?: SerializedMonitorConfig['recovery_threshold']; | ||
} | ||
export {}; | ||
//# sourceMappingURL=checkin.d.ts.map |
import { Client } from './client'; | ||
import { MeasurementUnit } from './measurement'; | ||
import { DurationUnit, MeasurementUnit } from './measurement'; | ||
import { Primitive } from './misc'; | ||
@@ -82,3 +82,14 @@ export interface MetricData { | ||
gauge(name: string, value: number, data?: MetricData): void; | ||
/** | ||
* Adds a timing metric. | ||
* The metric is added as a distribution metric. | ||
* | ||
* You can either directly capture a numeric `value`, or wrap a callback function in `timing`. | ||
* In the latter case, the duration of the callback execution will be captured as a span & a metric. | ||
* | ||
* @experimental This API is experimental and might have breaking changes in the future. | ||
*/ | ||
timing(name: string, value: number, unit?: DurationUnit, data?: Pick<MetricData, Exclude<keyof MetricData, 'unit'>>): void; | ||
timing<T>(name: string, callback: () => T, unit?: DurationUnit, data?: Pick<MetricData, Exclude<keyof MetricData, 'unit'>>): T; | ||
} | ||
//# sourceMappingURL=metrics.d.ts.map |
@@ -24,2 +24,4 @@ import type { TraceContext } from './context'; | ||
timezone?: string; | ||
failure_issue_threshold?: number; | ||
recovery_threshold?: number; | ||
}; | ||
@@ -51,6 +53,6 @@ contexts?: { | ||
timezone?: SerializedMonitorConfig['timezone']; | ||
failure_issue_threshold?: number; | ||
recovery_threshold?: number; | ||
failureIssueThreshold?: SerializedMonitorConfig['failure_issue_threshold']; | ||
recoveryThreshold?: SerializedMonitorConfig['recovery_threshold']; | ||
} | ||
export {}; | ||
//# sourceMappingURL=checkin.d.ts.map |
import type { Client } from './client'; | ||
import type { MeasurementUnit } from './measurement'; | ||
import type { DurationUnit, MeasurementUnit } from './measurement'; | ||
import type { Primitive } from './misc'; | ||
@@ -82,3 +82,14 @@ export interface MetricData { | ||
gauge(name: string, value: number, data?: MetricData): void; | ||
/** | ||
* Adds a timing metric. | ||
* The metric is added as a distribution metric. | ||
* | ||
* You can either directly capture a numeric `value`, or wrap a callback function in `timing`. | ||
* In the latter case, the duration of the callback execution will be captured as a span & a metric. | ||
* | ||
* @experimental This API is experimental and might have breaking changes in the future. | ||
*/ | ||
timing(name: string, value: number, unit?: DurationUnit, data?: Omit<MetricData, 'unit'>): void; | ||
timing<T>(name: string, callback: () => T, unit?: DurationUnit, data?: Omit<MetricData, 'unit'>): T; | ||
} | ||
//# sourceMappingURL=metrics.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
316499
6533