Skip to content

Commit

Permalink
Better wrap fn naming in express instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlesDD committed Oct 14, 2024
1 parent 7329b18 commit 22ce025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/datadog-instrumentations/src/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ addHook({

const processParamsStartCh = channel('datadog:express:process_params:start')
const wrapProcessParamsMethod = (requestPositionInArguments) => {
return (original) => {
return function () {
return function wrapProcessParams (original) {
return function wrappedProcessParams () {
if (processParamsStartCh.hasSubscribers) {
const req = arguments[requestPositionInArguments]
const abortController = new AbortController()
Expand Down

0 comments on commit 22ce025

Please sign in to comment.