Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit c703bdd

Browse files
committed
Support restify 8
1 parent f39cb28 commit c703bdd

5 files changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ The trace agent can do automatic tracing of the following web frameworks:
104104
* [gRPC](https://www.npmjs.com/package/grpc) server (version ^1.1)
105105
* [hapi](https://www.npmjs.com/package/hapi) (versions 8 - 16)
106106
* [koa](https://www.npmjs.com/package/koa) (version 1 - 2)
107-
* [restify](https://www.npmjs.com/package/restify) (versions 3 - 7)
107+
* [restify](https://www.npmjs.com/package/restify) (versions 3 - 8)
108108

109109
The agent will also automatically trace RPCs from the following modules:
110110
* Outbound HTTP requests through `http`, `https`, and `http2` core modules

src/plugins/plugin-restify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type Response = restify_5.Response;
2626
type Next = restify_5.Next;
2727
type CreateServerFn = (options?: restify_5.ServerOptions) => restify_5.Server;
2828

29-
const SUPPORTED_VERSIONS = '<=7.x';
29+
const SUPPORTED_VERSIONS = '<=8.x';
3030

3131
function unpatchRestify(restify: Restify5) {
3232
shimmer.unwrap(restify, 'createServer');

test/fixtures/plugin-fixtures.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,5 +235,10 @@
235235
"dependencies": {
236236
"restify": "^7.2.2"
237237
}
238+
},
239+
"restify8": {
240+
"dependencies": {
241+
"restify": "^8.5.1"
242+
}
238243
}
239244
}

test/test-trace-web-frameworks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import {
4141
Restify5,
4242
Restify6,
4343
Restify7,
44+
Restify8,
4445
} from './web-frameworks/restify';
4546

4647
// The type of a stack trace object after being parsed from a trace span's stack
@@ -68,6 +69,7 @@ const FRAMEWORKS: WebFrameworkConstructor[] = [
6869
Restify5,
6970
Restify6,
7071
Restify7,
72+
Restify8,
7173
];
7274

7375
/**

test/web-frameworks/restify.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,5 @@ export const Restify4 = makeRestifyClass(4);
9393
export const Restify5 = makeRestifyClass(5);
9494
export const Restify6 = makeRestifyClass(6);
9595
export const Restify7 = makeRestifyClass(7);
96+
export const Restify8 = makeRestifyClass(8);
9697
// tslint:enable:variable-name

0 commit comments

Comments
 (0)