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

Commit f52fa4d

Browse files
feat: support restify 8 (#1250)
1 parent 69b4049 commit f52fa4d

File tree

6 files changed

+11
-3
lines changed

6 files changed

+11
-3
lines changed

.readme-partials.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ body: |-
5353
* [gRPC](https://www.npmjs.com/package/grpc) server (version ^1.1)
5454
* [hapi](https://www.npmjs.com/package/hapi) (versions 8 - 19)
5555
* [koa](https://www.npmjs.com/package/koa) (version 1 - 2)
56-
* [restify](https://www.npmjs.com/package/restify) (versions 3 - 7)
56+
* [restify](https://www.npmjs.com/package/restify) (versions 3 - 8)
5757
5858
The agent will also automatically trace RPCs from the following modules:
5959
* Outbound HTTP requests through `http`, `https`, and `http2` core modules

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 - 19)
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
@@ -25,7 +25,7 @@ type Response = restify_5.Response;
2525
type Next = restify_5.Next;
2626
type CreateServerFn = (options?: restify_5.ServerOptions) => restify_5.Server;
2727

28-
const SUPPORTED_VERSIONS = '<=7.x';
28+
const SUPPORTED_VERSIONS = '<=8.x';
2929

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

test/fixtures/plugin-fixtures.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,5 +238,10 @@
238238
"dependencies": {
239239
"restify": "^7.2.2"
240240
}
241+
},
242+
"restify8": {
243+
"dependencies": {
244+
"restify": "^8.5.1"
245+
}
241246
}
242247
}

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
@@ -91,4 +91,5 @@ export const Restify4 = makeRestifyClass(4);
9191
export const Restify5 = makeRestifyClass(5);
9292
export const Restify6 = makeRestifyClass(6);
9393
export const Restify7 = makeRestifyClass(7);
94+
export const Restify8 = makeRestifyClass(8);
9495
// tslint:enable:variable-name

0 commit comments

Comments
 (0)