Skip to content

Commit e8bf59d

Browse files
committed
improve flush logging
1 parent 7312cf7 commit e8bf59d

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ dist
1313
index.js
1414
lambda-wrapper.js
1515
loader.js
16+
./handler.cjs
17+
./handler.mjs
1618
# misc
1719
.DS_Store
1820

meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8628,7 +8628,7 @@
86288628
"format": "cjs"
86298629
},
86308630
"src/lambda-wrapper.ts": {
8631-
"bytes": 4094,
8631+
"bytes": 4066,
86328632
"imports": [
86338633
{
86348634
"path": "node_modules/@opentelemetry/api/build/src/index.js",
@@ -10491,10 +10491,10 @@
1049110491
"bytesInOutput": 1676
1049210492
},
1049310493
"src/lambda-wrapper.ts": {
10494-
"bytesInOutput": 2233
10494+
"bytesInOutput": 2215
1049510495
}
1049610496
},
10497-
"bytes": 431442
10497+
"bytes": 431424
1049810498
}
1049910499
}
1050010500
}

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ export function wrap(handler: Handler) {
100100
throw e
101101
} finally {
102102
if (global.baselimeLambdaFlush) {
103-
console.time('baselimeLambdaFlush');
103+
console.time('Baselime Trace Export');
104104
await global.baselimeLambdaFlush();
105-
console.timeEnd('baselimeLambdaFlush');
105+
console.timeEnd('Baselime Trace Export');
106106
}
107107
}
108108
}

src/lambda-wrapper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ if (existsSync('/opt/extensions/baselime')) {
4040
collectorURL = 'http://sandbox:4323/otel';
4141
}
4242

43+
4344
const spanProcessor = new BatchSpanProcessor(
4445
new OTLPTraceExporter({
4546
url: collectorURL,

0 commit comments

Comments
 (0)