Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit f66dd56

Browse files
gapodaca-atlassianAmir Blum
andauthored
move span.end call to after response hook call (#219)
Co-authored-by: Amir Blum <[email protected]>
1 parent 459790a commit f66dd56

File tree

1 file changed

+1
-1
lines changed
  • packages/instrumentation-mongoose/src

1 file changed

+1
-1
lines changed

packages/instrumentation-mongoose/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export function handlePromiseResponse(
8080
responseHook?: MongooseResponseCustomAttributesFunction
8181
): any {
8282
if (!(execResponse instanceof Promise)) {
83-
span.end();
8483
applyResponseHook(span, execResponse, responseHook);
84+
span.end();
8585
return execResponse;
8686
}
8787

0 commit comments

Comments
 (0)