Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/types

Package Overview
Dependencies
Maintainers
11
Versions
481
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 7.90.0 to 7.91.0

2

package.json
{
"name": "@sentry/types",
"version": "7.90.0",
"version": "7.91.0",
"description": "Types for all Sentry JavaScript SDKs",

@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

@@ -73,2 +73,7 @@ import { Breadcrumb, BreadcrumbHint } from './breadcrumb';

/**
* Get the currently active isolation scope.
* The isolation scope is used to isolate data between different hubs.
*/
getIsolationScope(): Scope;
/**
* Captures an exception event and sends it to Sentry.

@@ -182,3 +187,3 @@ *

*
* The transaction must be finished with a call to its `.finish()` method, at which point the transaction with all its
* The transaction must be finished with a call to its `.end()` method, at which point the transaction with all its
* finished child spans will be sent to Sentry.

@@ -185,0 +190,0 @@ *

import { MeasurementUnit } from './measurement';
import { Primitive } from './misc';
export interface MetricInstance {
/**
* An abstract definition of the minimum required API
* for a metric instance.
*/
export declare abstract class MetricInstance {
/*
* Returns the weight of the metric.
*/
readonly weight: number;
/**

@@ -13,12 +21,10 @@ * Adds a value to a metric.

}
export type MetricBucketItem = [
/*metric*/ MetricInstance,
/*timestamp*/ number,
/*metricType*/ 'c' | 'g' | 's' | 'd',
/*name*/ string,
/*unit*/ MeasurementUnit,
/*tags*/ {
[key: string]: string;
}
];
export interface MetricBucketItem {
metric: MetricInstance;
timestamp: number;
metricType: 'c' | 'g' | 's' | 'd';
name: string;
unit: MeasurementUnit;
tags: Record<string, string>;
}
/**

@@ -25,0 +31,0 @@ * A metrics aggregator that aggregates metrics in memory and flushes them periodically.

@@ -117,2 +117,6 @@ import { Instrumenter } from './instrumenter';

/**
* End the current span.
*/
end(endTimestamp?: number): void;
/**
* Sets the tag attribute on the current span.

@@ -119,0 +123,0 @@ *

@@ -73,2 +73,7 @@ import type { Breadcrumb, BreadcrumbHint } from './breadcrumb';

/**
* Get the currently active isolation scope.
* The isolation scope is used to isolate data between different hubs.
*/
getIsolationScope(): Scope;
/**
* Captures an exception event and sends it to Sentry.

@@ -182,3 +187,3 @@ *

*
* The transaction must be finished with a call to its `.finish()` method, at which point the transaction with all its
* The transaction must be finished with a call to its `.end()` method, at which point the transaction with all its
* finished child spans will be sent to Sentry.

@@ -185,0 +190,0 @@ *

import type { MeasurementUnit } from './measurement';
import type { Primitive } from './misc';
export interface MetricInstance {
/**
* An abstract definition of the minimum required API
* for a metric instance.
*/
export declare abstract class MetricInstance {
/**
* Returns the weight of the metric.
*/
get weight(): number;
/**
* Adds a value to a metric.

@@ -13,12 +21,10 @@ */

}
export type MetricBucketItem = [
metric: MetricInstance,
timestamp: number,
metricType: 'c' | 'g' | 's' | 'd',
name: string,
unit: MeasurementUnit,
tags: {
[key: string]: string;
}
];
export interface MetricBucketItem {
metric: MetricInstance;
timestamp: number;
metricType: 'c' | 'g' | 's' | 'd';
name: string;
unit: MeasurementUnit;
tags: Record<string, string>;
}
/**

@@ -25,0 +31,0 @@ * A metrics aggregator that aggregates metrics in memory and flushes them periodically.

@@ -117,2 +117,6 @@ import type { Instrumenter } from './instrumenter';

/**
* End the current span.
*/
end(endTimestamp?: number): void;
/**
* Sets the tag attribute on the current span.

@@ -119,0 +123,0 @@ *

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

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