File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
e2e-tests/test-applications/node-hapi-app
node/src/integrations/hapi Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
- import type { Envelope , EnvelopeItem , Event } from '@sentry/types' ;
2
- import { parseEnvelope } from '@sentry/utils' ;
3
1
import * as fs from 'fs' ;
4
2
import * as http from 'http' ;
5
3
import * as https from 'https' ;
@@ -8,6 +6,8 @@ import * as os from 'os';
8
6
import * as path from 'path' ;
9
7
import * as util from 'util' ;
10
8
import * as zlib from 'zlib' ;
9
+ import type { Envelope , EnvelopeItem , Event } from '@sentry/types' ;
10
+ import { parseEnvelope } from '@sentry/utils' ;
11
11
12
12
const readFile = util . promisify ( fs . readFile ) ;
13
13
const writeFile = util . promisify ( fs . writeFile ) ;
Original file line number Diff line number Diff line change 1
- import { test , expect } from '@playwright/test' ;
1
+ import { expect , test } from '@playwright/test' ;
2
2
import axios , { AxiosError , AxiosResponse } from 'axios' ;
3
3
import { waitForError , waitForTransaction } from '../event-proxy-server' ;
4
4
Original file line number Diff line number Diff line change 1
1
import {
2
+ SDK_VERSION ,
2
3
captureException ,
3
- configureScope ,
4
4
continueTrace ,
5
5
getActiveTransaction ,
6
- SDK_VERSION ,
6
+ getCurrentScope ,
7
7
startTransaction ,
8
8
} from '@sentry/core' ;
9
9
import type { Integration } from '@sentry/types' ;
@@ -80,9 +80,7 @@ export const hapiTracingPlugin = {
80
80
} ,
81
81
) ;
82
82
83
- configureScope ( scope => {
84
- scope . setSpan ( transaction ) ;
85
- } ) ;
83
+ getCurrentScope ( ) . setSpan ( transaction ) ;
86
84
87
85
return h . continue ;
88
86
} ) ;
You can’t perform that action at this time.
0 commit comments