Skip to content

Commit

Permalink
feat: TRAC-29-Add-support-for-Next.JS-to-the-Node-Distro (#518)
Browse files Browse the repository at this point in the history
* Adding support of Next.js

---------
  • Loading branch information
eugene-lumigo authored Oct 7, 2024
1 parent dbbdac2 commit d540caf
Show file tree
Hide file tree
Showing 22 changed files with 8,722 additions and 17,601 deletions.
55 changes: 28 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,33 +301,34 @@ trace.getActiveSpan()?.addEvent('<error-message>', {'lumigo.type': '<error-type>
## Supported packages
| Instrumentation | Package | Supported Versions | | | |
| --- | --- | :---: | :---: | :---: | :---: |
| | | 14 | 16 | 18 | 20 |
| client-sqs | [@aws-sdk/client-sqs](https://www.npmjs.com/package/@aws-sdk/client-sqs) | 3.525.0|3.525.0|3.525.0|3.525.0|
| grpc-js | [@grpc/grpc-js](https://www.npmjs.com/package/@grpc/grpc-js) | 1.8.0~1.8.20|1.8.0~1.8.20|1.8.0~1.8.20|1.8.0~1.8.20|
| core | [@nestjs/core](https://www.npmjs.com/package/@nestjs/core) | |10.3.2|10.3.2|10.3.2|
| amqplib | [amqplib](https://www.npmjs.com/package/amqplib) | 0.9.0~0.10.4|0.9.0~0.10.4|0.9.0~0.10.4|0.9.0~0.10.4|
| aws-sdk | [aws-sdk](https://www.npmjs.com/package/aws-sdk) | 2.1533.0~2.1651.0|2.1533.0~2.1651.0|2.1533.0~2.1651.0|2.1533.0~2.1651.0|
| bunyan | [bunyan](https://www.npmjs.com/package/bunyan) | 1.8.15|1.8.15|1.8.15|1.8.15|
| | | 2.0.5| 2.0.5| 2.0.5| 2.0.5|
| express | [express](https://www.npmjs.com/package/express) | 4.9.0~4.19.2|4.9.0~4.19.2|4.9.0~4.19.2|4.9.0~4.19.2|
| fastify | [fastify](https://www.npmjs.com/package/fastify) | 3.3.0~3.29.5|3.3.0~3.29.5|3.3.0~3.29.5|3.3.0~3.29.5|
| | | 4.0.0| 4.0.0| 4.0.0| 4.0.0|
| | | 4.0.1~4.28.1| 4.0.1~4.28.1| 4.0.1~4.28.1| 4.0.1~4.28.1|
| ioredis | [ioredis](https://www.npmjs.com/package/ioredis) | 4.0.0~4.28.5|4.0.0~4.28.5|4.0.0~4.28.5|4.0.0~4.28.5|
| | | 5.0.0~5.4.1| 5.0.0~5.4.1| 5.0.0~5.4.1| 5.0.0~5.4.1|
| kafkajs | [kafkajs](https://www.npmjs.com/package/kafkajs) | 2.0.0~2.2.4|2.0.0~2.2.4|2.0.0~2.2.4|2.0.0~2.2.4|
| mongodb | [mongodb](https://www.npmjs.com/package/mongodb) | 4.17.0~4.17.2|3.6.6~3.7.3|3.6.6~3.7.3|3.6.6~3.7.3|
| | | 5.0.0~5.9.2| 4.0.0~4.17.2| 4.0.0~4.17.2| 4.0.0~4.17.2|
| | | | 5.0.0~5.9.2| 5.0.0~5.9.2| 5.0.0~5.9.2|
| | | | 6.0.0~6.3.0| 6.0.0~6.3.0| 6.0.0~6.3.0|
| pg | [pg](https://www.npmjs.com/package/pg) | 8.11.3~8.12.0|8.11.3~8.12.0|8.11.3~8.12.0|8.11.3~8.12.0|
| prisma | [prisma](https://www.npmjs.com/package/prisma) | 4.2.0~4.16.2|4.2.0~4.16.2|4.2.0~4.16.2|4.2.0~4.16.2|
| | | 5.0.0~5.16.1| 5.0.0~5.16.1| 5.0.0~5.16.1| 5.0.0~5.16.1|
| redis | [redis](https://www.npmjs.com/package/redis) | 4.0.0~4.6.8|4.0.0~4.6.14|4.0.0~4.6.14|4.0.0~4.6.14|
| | | 4.6.10~4.6.14| | | |
| winston | [winston](https://www.npmjs.com/package/winston) | 3.13.0|3.13.0|3.13.0|3.13.0|
| Instrumentation | Package | Supported Versions | | | |
|-----------------|--------------------------------------------------------------------------| :---: | :---: | :---: | :---: |
| | | 14 | 16 | 18 | 20 |
| client-sqs | [@aws-sdk/client-sqs](https://www.npmjs.com/package/@aws-sdk/client-sqs) | 3.525.0|3.525.0|3.525.0|3.525.0|
| grpc-js | [@grpc/grpc-js](https://www.npmjs.com/package/@grpc/grpc-js) | 1.8.0~1.8.20|1.8.0~1.8.20|1.8.0~1.8.20|1.8.0~1.8.20|
| core | [@nestjs/core](https://www.npmjs.com/package/@nestjs/core) | |10.3.2|10.3.2|10.3.2|
| amqplib | [amqplib](https://www.npmjs.com/package/amqplib) | 0.9.0~0.10.4|0.9.0~0.10.4|0.9.0~0.10.4|0.9.0~0.10.4|
| aws-sdk | [aws-sdk](https://www.npmjs.com/package/aws-sdk) | 2.1533.0~2.1651.0|2.1533.0~2.1651.0|2.1533.0~2.1651.0|2.1533.0~2.1651.0|
| bunyan | [bunyan](https://www.npmjs.com/package/bunyan) | 1.8.15|1.8.15|1.8.15|1.8.15|
| | | 2.0.5| 2.0.5| 2.0.5| 2.0.5|
| express | [express](https://www.npmjs.com/package/express) | 4.9.0~4.19.2|4.9.0~4.19.2|4.9.0~4.19.2|4.9.0~4.19.2|
| fastify | [fastify](https://www.npmjs.com/package/fastify) | 3.3.0~3.29.5|3.3.0~3.29.5|3.3.0~3.29.5|3.3.0~3.29.5|
| | | 4.0.0| 4.0.0| 4.0.0| 4.0.0|
| | | 4.0.1~4.28.1| 4.0.1~4.28.1| 4.0.1~4.28.1| 4.0.1~4.28.1|
| ioredis | [ioredis](https://www.npmjs.com/package/ioredis) | 4.0.0~4.28.5|4.0.0~4.28.5|4.0.0~4.28.5|4.0.0~4.28.5|
| | | 5.0.0~5.4.1| 5.0.0~5.4.1| 5.0.0~5.4.1| 5.0.0~5.4.1|
| kafkajs | [kafkajs](https://www.npmjs.com/package/kafkajs) | 2.0.0~2.2.4|2.0.0~2.2.4|2.0.0~2.2.4|2.0.0~2.2.4|
| mongodb | [mongodb](https://www.npmjs.com/package/mongodb) | 4.17.0~4.17.2|3.6.6~3.7.3|3.6.6~3.7.3|3.6.6~3.7.3|
| | | 5.0.0~5.9.2| 4.0.0~4.17.2| 4.0.0~4.17.2| 4.0.0~4.17.2|
| | | | 5.0.0~5.9.2| 5.0.0~5.9.2| 5.0.0~5.9.2|
| | | | 6.0.0~6.3.0| 6.0.0~6.3.0| 6.0.0~6.3.0|
| pg | [pg](https://www.npmjs.com/package/pg) | 8.11.3~8.12.0|8.11.3~8.12.0|8.11.3~8.12.0|8.11.3~8.12.0|
| prisma | [prisma](https://www.npmjs.com/package/prisma) | 4.2.0~4.16.2|4.2.0~4.16.2|4.2.0~4.16.2|4.2.0~4.16.2|
| | | 5.0.0~5.16.1| 5.0.0~5.16.1| 5.0.0~5.16.1| 5.0.0~5.16.1|
| redis | [redis](https://www.npmjs.com/package/redis) | 4.0.0~4.6.8|4.0.0~4.6.14|4.0.0~4.6.14|4.0.0~4.6.14|
| | | 4.6.10~4.6.14| | | |
| winston | [winston](https://www.npmjs.com/package/winston) | 3.13.0|3.13.0|3.13.0|3.13.0|
| Next.js | [next](https://www.npmjs.com/package/next) | ||||
### Activating your Prisma client's instrumentation
If you're using [Prisma](https://www.npmjs.com/package/prisma) and you would like it instrumented, the *only* thing you will need to do (aside from [activating the tracer](#tracer-activation), of course) is ensure that your schema file's `generator client` has the `tracing` preview feature enabled prior to generating the client itself.
Expand Down
Loading

0 comments on commit d540caf

Please sign in to comment.