File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const DEFAULT_SHUTDOWN_TIMEOUT = 2000;
16
16
type TransactionTypes = 'path' | 'methodPath' | 'handler' ;
17
17
18
18
/** JSDoc */
19
- function extractTransaction ( req : { [ key : string ] : any } , type : TransactionTypes ) : string | undefined {
19
+ function extractTransaction ( req : { [ key : string ] : any } , type : boolean | TransactionTypes ) : string | undefined {
20
20
try {
21
21
// Express.js shape
22
22
const request = req as {
@@ -205,7 +205,7 @@ function parseRequest(
205
205
export function requestHandler ( options ?: {
206
206
request ?: boolean ;
207
207
serverName ?: boolean ;
208
- transaction ?: boolean | string ;
208
+ transaction ?: boolean | TransactionTypes ;
209
209
user ?: boolean ;
210
210
version ?: boolean ;
211
211
} ) : ( req : http . IncomingMessage , res : http . ServerResponse , next : ( ) => void ) => void {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { Transaction } from '../../src/integrations/pluggable/transaction';
2
2
3
3
const transaction : Transaction = new Transaction ( ) ;
4
4
5
- describe . only ( 'Transaction' , ( ) => {
5
+ describe ( 'Transaction' , ( ) => {
6
6
describe ( 'extracts info from module/function of the first `in_app` frame' , ( ) => {
7
7
it ( 'using module only' , async ( ) => {
8
8
const event = await transaction . process ( {
You can’t perform that action at this time.
0 commit comments