Returns a function that checks if the outgoing request path should be ignored. The function should be used for configuring the http instrumentation. The function takes an array of regular expressions and returns a boolean value.

  • Parameters

    • pathsToIgnore: RegExp[]

      An array of regular expressions representing the paths to ignore.

    Returns (request: RequestOptions) => boolean

    A function that takes a request and returns a boolean indicating whether the request path should be ignored.