Skip to content

Commit f922414

Browse files
authored
build: Fix linting (#9888)
Damn, merged a PR without rebasing it first, it did not have the new biome rules yet 😅 so develop is failing linting right now...
1 parent 35906d0 commit f922414

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

packages/e2e-tests/test-applications/node-hapi-app/event-proxy-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { Envelope, EnvelopeItem, Event } from '@sentry/types';
2-
import { parseEnvelope } from '@sentry/utils';
31
import * as fs from 'fs';
42
import * as http from 'http';
53
import * as https from 'https';
@@ -8,6 +6,8 @@ import * as os from 'os';
86
import * as path from 'path';
97
import * as util from 'util';
108
import * as zlib from 'zlib';
9+
import type { Envelope, EnvelopeItem, Event } from '@sentry/types';
10+
import { parseEnvelope } from '@sentry/utils';
1111

1212
const readFile = util.promisify(fs.readFile);
1313
const writeFile = util.promisify(fs.writeFile);

packages/e2e-tests/test-applications/node-hapi-app/tests/server.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { test, expect } from '@playwright/test';
1+
import { expect, test } from '@playwright/test';
22
import axios, { AxiosError, AxiosResponse } from 'axios';
33
import { waitForError, waitForTransaction } from '../event-proxy-server';
44

packages/node/src/integrations/hapi/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {
2+
SDK_VERSION,
23
captureException,
3-
configureScope,
44
continueTrace,
55
getActiveTransaction,
6-
SDK_VERSION,
6+
getCurrentScope,
77
startTransaction,
88
} from '@sentry/core';
99
import type { Integration } from '@sentry/types';
@@ -80,9 +80,7 @@ export const hapiTracingPlugin = {
8080
},
8181
);
8282

83-
configureScope(scope => {
84-
scope.setSpan(transaction);
85-
});
83+
getCurrentScope().setSpan(transaction);
8684

8785
return h.continue;
8886
});

0 commit comments

Comments
 (0)