Skip to content

Commit

Permalink
TRACING-4435 added again
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-sumo committed Oct 21, 2024
1 parent 311d62b commit aeb030b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ export const initialize = ({
}
};

const httpInstrumentation = new HttpInstrumentation({
enabled: true,
ignoreIncomingPaths: ['/youtube'],
ignoreIncomingRequestHook: () => true, // Ignore every incoming request
});
// const httpInstrumentation = new HttpInstrumentation({
// enabled: true,
// ignoreIncomingPaths: ['/youtube'],
// ignoreIncomingRequestHook: () => true, // Ignore every incoming request
// });

const registerInstrumentations = () => {
disableInstrumentations();
Expand Down Expand Up @@ -271,7 +271,13 @@ export const initialize = ({
propagateTraceHeaderCorsUrls,
ignoreUrls,
}),
httpInstrumentation,
new HttpInstrumentation({
enabled: true,
ignoreIncomingRequestHook: () => true,

// ignoreIncomingPaths: ['/youtube'],
// ignoreIncomingRequestHook: () => true, // Ignore every incoming request
}),
],
});
};
Expand Down

0 comments on commit aeb030b

Please sign in to comment.