File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
packages/node/src/integrations/tracing/fastify/fastify-otel Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
30
SOFTWARE.
31
31
*/
32
32
33
- /* eslint-disable @typescript-eslint/explicit-member-accessibility */
34
33
/* eslint-disable jsdoc/require-jsdoc */
35
34
/* eslint-disable max-lines */
36
35
/* eslint-disable no-param-reassign */
@@ -44,6 +43,7 @@ import {
44
43
ATTR_HTTP_ROUTE ,
45
44
ATTR_SERVICE_NAME ,
46
45
} from '@opentelemetry/semantic-conventions' ;
46
+ import { minimatch } from 'minimatch' ;
47
47
48
48
// SENTRY VENDOR NOTE
49
49
// Instead of using the package.json file, we hard code the package name and version here.
@@ -97,18 +97,12 @@ export class FastifyOtelInstrumentation extends InstrumentationBase {
97
97
throw new TypeError ( 'ignorePaths must be a string or a function' ) ;
98
98
}
99
99
100
- let globMatcher = null ;
100
+ const globMatcher = minimatch ;
101
101
102
102
this [ kIgnorePaths ] = routeOptions => {
103
103
if ( typeof ignorePaths === 'function' ) {
104
104
return ignorePaths ( routeOptions ) ;
105
105
} else {
106
- // Using minimatch to match the path until path.matchesGlob is out of experimental
107
- // path.matchesGlob uses minimatch internally
108
- if ( globMatcher == null ) {
109
- globMatcher = require ( 'minimatch' ) . minimatch ;
110
- }
111
-
112
106
return globMatcher ( routeOptions . url , ignorePaths ) ;
113
107
}
114
108
} ;
You can’t perform that action at this time.
0 commit comments