-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12272 from getsentry/prepare-release/8.6.00
meta: Add Changelog entry for 8.6.0
- Loading branch information
Showing
113 changed files
with
1,961 additions
and
890 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
dev-packages/browser-integration-tests/suites/metrics/timing/init.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import * as Sentry from '@sentry/browser'; | ||
|
||
window.Sentry = Sentry; | ||
|
||
Sentry.init({ | ||
dsn: 'https://public@dsn.ingest.sentry.io/1337', | ||
tracesSampleRate: 1.0, | ||
release: '1.0.0', | ||
autoSessionTracking: false, | ||
}); | ||
|
||
window.timingSync = () => { | ||
// Ensure we always have a wrapping span | ||
return Sentry.startSpan({ name: 'manual span' }, () => { | ||
return Sentry.metrics.timing('timingSync', () => { | ||
sleepSync(200); | ||
return 'sync done'; | ||
}); | ||
}); | ||
}; | ||
|
||
window.timingAsync = () => { | ||
// Ensure we always have a wrapping span | ||
return Sentry.startSpan({ name: 'manual span' }, () => { | ||
return Sentry.metrics.timing('timingAsync', async () => { | ||
await new Promise(resolve => setTimeout(resolve, 200)); | ||
return 'async done'; | ||
}); | ||
}); | ||
}; | ||
|
||
function sleepSync(milliseconds) { | ||
var start = new Date().getTime(); | ||
for (var i = 0; i < 1e7; i++) { | ||
if (new Date().getTime() - start > milliseconds) { | ||
break; | ||
} | ||
} | ||
} |
Oops, something went wrong.