Skip to content

Commit 5c1c24d

Browse files
Update src/trace/span-inferrer.ts
Co-authored-by: AJ Stuyvenberg <[email protected]>
1 parent 64129c7 commit 5c1c24d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trace/span-inferrer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ export class SpanInferrer {
525525
}
526526

527527
getResourcePath(event: any): string {
528-
const routeKey = event.requestContext.routeKey;
528+
const routeKey = event?.requestContext?.routeKey;
529529
if (routeKey && routeKey.includes("{")) {
530530
// this is a parameterized route
531531
try {

0 commit comments

Comments
 (0)