Skip to content

Commit ff76942

Browse files
committed
fix: Minor latest transactions PR update
1 parent b55d70e commit ff76942

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/node/src/handlers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const DEFAULT_SHUTDOWN_TIMEOUT = 2000;
1616
type TransactionTypes = 'path' | 'methodPath' | 'handler';
1717

1818
/** JSDoc */
19-
function extractTransaction(req: { [key: string]: any }, type: TransactionTypes): string | undefined {
19+
function extractTransaction(req: { [key: string]: any }, type: boolean | TransactionTypes): string | undefined {
2020
try {
2121
// Express.js shape
2222
const request = req as {
@@ -205,7 +205,7 @@ function parseRequest(
205205
export function requestHandler(options?: {
206206
request?: boolean;
207207
serverName?: boolean;
208-
transaction?: boolean | string;
208+
transaction?: boolean | TransactionTypes;
209209
user?: boolean;
210210
version?: boolean;
211211
}): (req: http.IncomingMessage, res: http.ServerResponse, next: () => void) => void {

packages/node/test/integrations/transaction.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Transaction } from '../../src/integrations/pluggable/transaction';
22

33
const transaction: Transaction = new Transaction();
44

5-
describe.only('Transaction', () => {
5+
describe('Transaction', () => {
66
describe('extracts info from module/function of the first `in_app` frame', () => {
77
it('using module only', async () => {
88
const event = await transaction.process({

0 commit comments

Comments
 (0)