@@ -45,7 +45,7 @@ const web = {
45
45
const validateStatus = getStatusValidator ( config )
46
46
const hooks = getHooks ( config )
47
47
const filter = urlFilter . getFilter ( config )
48
- const middlewareTracingEnabled = getMiddlewareSetting ( config , tracerConfig )
48
+ const middleware = getMiddlewareSetting ( config , tracerConfig )
49
49
const queryStringObfuscation = getQsObfuscator ( config )
50
50
51
51
return {
@@ -54,7 +54,7 @@ const web = {
54
54
validateStatus,
55
55
hooks,
56
56
filter,
57
- middlewareTracingEnabled ,
57
+ middleware ,
58
58
queryStringObfuscation
59
59
}
60
60
} ,
@@ -160,7 +160,7 @@ const web = {
160
160
const childOf = this . active ( req )
161
161
const config = context . config
162
162
163
- if ( config . middlewareTracingEnabled === false ) {
163
+ if ( config . middleware === false ) {
164
164
return this . bindAndWrapMiddlewareErrors ( fn , req , tracer , childOf )
165
165
}
166
166
@@ -574,8 +574,8 @@ function getHooks (config) {
574
574
575
575
function getMiddlewareSetting ( config , tracerConfig ) {
576
576
if ( config ) {
577
- if ( typeof config . middlewareTracingEnabled === 'boolean' ) {
578
- return config . middlewareTracingEnabled
577
+ if ( typeof config . middleware === 'boolean' ) {
578
+ return config . middleware
579
579
} else if ( config . hasOwnProperty ( 'middlewareTracingEnabled' ) ) {
580
580
log . error ( 'Expected `middlewareTracingEnabled` to be a boolean.' )
581
581
}
0 commit comments