@sentry/types
Advanced tools
Comparing version 7.90.0 to 7.91.0
{ | ||
"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
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
262804
5456