@sentry-internal/browser-utils
Advanced tools
Comparing version 9.1.0 to 9.1.1-alpha.0
@@ -379,9 +379,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
utils.startAndEndSpan(span, measureStartTimestamp, measureEndTimestamp, { | ||
name: entry.name , | ||
op: entry.entryType , | ||
attributes, | ||
}); | ||
return measureStartTimestamp; | ||
// Measurements from third parties can be off, which would create invalid spans, dropping transactions in the process. | ||
if (measureStartTimestamp <= measureEndTimestamp) { | ||
utils.startAndEndSpan(span, measureStartTimestamp, measureEndTimestamp, { | ||
name: entry.name , | ||
op: entry.entryType , | ||
attributes, | ||
}); | ||
} | ||
} | ||
@@ -388,0 +389,0 @@ |
@@ -377,9 +377,10 @@ import { browserPerformanceTimeOrigin, getActiveSpan, spanToJSON, setMeasurement, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, parseUrl, htmlTreeAsString, getComponentName } from '@sentry/core'; | ||
startAndEndSpan(span, measureStartTimestamp, measureEndTimestamp, { | ||
name: entry.name , | ||
op: entry.entryType , | ||
attributes, | ||
}); | ||
return measureStartTimestamp; | ||
// Measurements from third parties can be off, which would create invalid spans, dropping transactions in the process. | ||
if (measureStartTimestamp <= measureEndTimestamp) { | ||
startAndEndSpan(span, measureStartTimestamp, measureEndTimestamp, { | ||
name: entry.name , | ||
op: entry.entryType , | ||
attributes, | ||
}); | ||
} | ||
} | ||
@@ -386,0 +387,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"9.1.0","sideEffects":false} | ||
{"type":"module","version":"9.1.1-alpha.0","sideEffects":false} |
@@ -38,3 +38,3 @@ import { Span } from '@sentry/core'; | ||
*/ | ||
export declare function _addMeasureSpans(span: Span, entry: PerformanceEntry, startTime: number, duration: number, timeOrigin: number): number; | ||
export declare function _addMeasureSpans(span: Span, entry: PerformanceEntry, startTime: number, duration: number, timeOrigin: number): void; | ||
/** | ||
@@ -41,0 +41,0 @@ * Create resource-related spans. |
@@ -38,3 +38,3 @@ import type { Span } from '@sentry/core'; | ||
*/ | ||
export declare function _addMeasureSpans(span: Span, entry: PerformanceEntry, startTime: number, duration: number, timeOrigin: number): number; | ||
export declare function _addMeasureSpans(span: Span, entry: PerformanceEntry, startTime: number, duration: number, timeOrigin: number): void; | ||
/** | ||
@@ -41,0 +41,0 @@ * Create resource-related spans. |
{ | ||
"name": "@sentry-internal/browser-utils", | ||
"version": "9.1.0", | ||
"version": "9.1.1-alpha.0", | ||
"description": "Browser Utilities for all Sentry JavaScript SDKs", | ||
@@ -42,3 +42,3 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "9.1.0" | ||
"@sentry/core": "9.1.1-alpha.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "scripts": { |
@@ -16,3 +16,2 @@ <p align="center"> | ||
- [Official SDK Docs](https://docs.sentry.io/quickstart/) | ||
- [TypeDoc](http://getsentry.github.io/sentry-javascript/) | ||
@@ -19,0 +18,0 @@ ## General |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
741580
8052
1
23
+ Added@sentry/core@9.1.1-alpha.0(transitive)
- Removed@sentry/core@9.1.0(transitive)
Updated@sentry/core@9.1.1-alpha.0