Skip to content

Commit d16a353

Browse files
committed
record propagations in node
1 parent 76af3e3 commit d16a353

File tree

1 file changed

+5
-0
lines changed
  • packages/node/src/integrations

1 file changed

+5
-0
lines changed

packages/node/src/integrations/http.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ function _createWrappedRequestMethodFactory(
185185
addRequestBreadcrumb('response', requestUrl, req, res);
186186
}
187187
if (tracingEnabled && span) {
188+
const transaction = span.transaction;
189+
if (transaction) {
190+
transaction.metadata.numPropagations += 1;
191+
}
192+
188193
if (res.statusCode) {
189194
span.setHttpStatus(res.statusCode);
190195
}

0 commit comments

Comments
 (0)