@@ -29,7 +29,7 @@ export default defineNitroPlugin(async _nitroApp => {
29
29
// Mounts are suffixed with a colon, so we need to add it to the set items
30
30
const userMounts = new Set ( ( userStorageMounts as string [ ] ) . map ( m => `${ m } :` ) ) ;
31
31
32
- debug . log ( '[Storage Instrumentation ] Starting to instrument storage drivers...' ) ;
32
+ debug . log ( '[storage ] Starting to instrument storage drivers...' ) ;
33
33
34
34
// Get all mounted storage drivers
35
35
const mounts = storage . getMounts ( ) ;
@@ -42,7 +42,7 @@ export default defineNitroPlugin(async _nitroApp => {
42
42
try {
43
43
instrumentDriver ( mount . driver , mount . base ) ;
44
44
} catch {
45
- debug . error ( `[Storage Instrumentation ] Failed to unmount mount: "${ mount . base } "` ) ;
45
+ debug . error ( `[storage ] Failed to unmount mount: "${ mount . base } "` ) ;
46
46
}
47
47
48
48
// Wrap the mount method to instrument future mounts
@@ -56,12 +56,12 @@ export default defineNitroPlugin(async _nitroApp => {
56
56
function instrumentDriver ( driver : MaybeInstrumentedDriver , mountBase : string ) : Driver {
57
57
// Already instrumented, skip...
58
58
if ( driver . __sentry_instrumented__ ) {
59
- debug . log ( `[Storage Instrumentation ] Driver already instrumented: "${ driver . name } ". Skipping...` ) ;
59
+ debug . log ( `[storage ] Driver already instrumented: "${ driver . name } ". Skipping...` ) ;
60
60
61
61
return driver ;
62
62
}
63
63
64
- debug . log ( `[Storage Instrumentation ] Instrumenting driver: "${ driver . name } " on mount: "${ mountBase } "` ) ;
64
+ debug . log ( `[storage ] Instrumenting driver: "${ driver . name } " on mount: "${ mountBase } "` ) ;
65
65
66
66
// List of driver methods to instrument
67
67
const methodsToInstrument : ( keyof Driver ) [ ] = [
@@ -109,7 +109,7 @@ function createMethodWrapper(
109
109
async apply ( target , thisArg , args ) {
110
110
const attributes = getSpanAttributes ( methodName , driverName ?? 'unknown' , mountBase ) ;
111
111
112
- debug . log ( `[Storage Instrumentation ] Running method: "${ methodName } " on driver: "${ driverName } "` ) ;
112
+ debug . log ( `[storage ] Running method: "${ methodName } " on driver: "${ driverName } "` ) ;
113
113
114
114
return startSpan (
115
115
{
@@ -149,7 +149,7 @@ function wrapStorageMount(storage: Storage): Storage['mount'] {
149
149
const original = storage . mount ;
150
150
151
151
function mountWithInstrumentation ( base : string , driver : Driver ) : Storage {
152
- debug . log ( `[Storage Instrumentation ] Instrumenting mount: "${ base } "` ) ;
152
+ debug . log ( `[storage ] Instrumenting mount: "${ base } "` ) ;
153
153
154
154
const instrumentedDriver = instrumentDriver ( driver , base ) ;
155
155
0 commit comments