Skip to content

Commit

Permalink
deps: bump sentry (#174)
Browse files Browse the repository at this point in the history
* deps: bump sentry

* sentry: call top level profile
  • Loading branch information
JonasBa authored Oct 8, 2024
1 parent 193b55f commit d8ad530
Show file tree
Hide file tree
Showing 3 changed files with 349 additions and 401 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"README"
],
"dependencies": {
"@sentry/node": "^8.11.0",
"@sentry/profiling-node": "^8.11.0",
"@sentry/node": "^8.33.1",
"@sentry/profiling-node": "^8.33.1",
"canvas": "^2.11.2",
"dotenv": "^8.2.0",
"echarts": "5.4.0",
Expand Down
11 changes: 1 addition & 10 deletions src/instrument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,4 @@ Sentry.init({
tracesSampleRate: 1,
});

const client = Sentry.getClient();

if (client) {
const profilingIntegration = client.getIntegrationByName('ProfilingIntegration');

if (profilingIntegration) {
// @ts-expect-error this is purposefuly not exposed by the SDK for now
profilingIntegration._profiler.start();
}
}
Sentry.profiler.startProfiler();
Loading

0 comments on commit d8ad530

Please sign in to comment.