Socket
Socket
Sign inDemoInstall

@sentry/types

Package Overview
Dependencies
Maintainers
11
Versions
465
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/types - npm Package Compare versions

Comparing version 8.5.0 to 8.6.0

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc