Skip to content

Commit 7f4c41f

Browse files
committed
fix from review
1 parent 6090994 commit 7f4c41f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/gateway/src/commands/handleOpenTelemetryCLIOpts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export async function handleOpenTelemetryCLIOpts(
136136
}),
137137
contextManager,
138138
_initialization: {
139-
name: integration!.name!,
139+
name: integration!.name,
140140
source: `cli flag (${integration!.source.flag}) or environment variables (${integration!.source.env})`,
141141
logAttributes,
142142
},

packages/plugins/opentelemetry/src/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ function createResource(
420420
*/
421421
function getStackTrace(): string {
422422
// slice(3) to remove the error message + getStackTrace() call + calling function call
423-
return new Error().stack!.split('\n').slice(3).join('\n').trim();
423+
return (new Error().stack ?? '').split('\n').slice(3).join('\n').trim();
424424
}
425425

426426
/**

0 commit comments

Comments
 (0)