Skip to content

Commit 81732c5

Browse files
authored
fix(apm): Set op in node http.server transaction (#2496)
* fix: Set op in transation * meta: Changelog
1 parent 13ab8e5 commit 81732c5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- [apm] fix: Use Performance API for timings when available, including Web Workers (#2492)
88
- [apm] fix: Remove Performance references (#2495)
9+
- [apm] fix: Set `op` in node http.server transaction (#2496)
910

1011
## 5.14.1
1112

packages/node/src/handlers.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ export function tracingHandler(): (
3434

3535
const hub = getCurrentHub();
3636
const transaction = hub.startSpan({
37-
transaction: `${reqMethod}|${reqUrl}`,
37+
op: 'http.server',
38+
transaction: `${reqMethod} ${reqUrl}`,
3839
});
40+
3941
hub.configureScope(scope => {
4042
scope.setSpan(transaction);
4143
});
44+
4245
res.once('finish', () => {
4346
transaction.setHttpStatus(res.statusCode);
4447
transaction.finish();

0 commit comments

Comments
 (0)