-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nestjs): Add @sentry/nestjs
#12613
Conversation
packages/nestjs/src/sdk.ts
Outdated
/** | ||
* Initializes the NestJS SDK | ||
*/ | ||
export function init(options: NodeOptions | undefined = {}): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
h: SDKs are supposed to return the Client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
packages/nestjs/README.md
Outdated
</a> | ||
</p> | ||
|
||
# Official Sentry SDK for NestJS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Official Sentry SDK for NestJS | |
# Official Sentry SDK for NestJS (EXPERIMENTAL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated the readme to indicate that it is experimental
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would still put the change Andrei suggested. It's better to be very loud with it than people potentially breaking because they missed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, the Nuxt and the Solid sdk both follow this "convention" now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, added
packages/nestjs/jest.config.js
Outdated
@@ -0,0 +1 @@ | |||
module.exports = require('../../jest/jest.config.js'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I like that. @nicohrubec would you mind adding a vitest setup instead of jest. You can take inspiration from the svelte
, sveltekit
and solid
packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
packages/nestjs/yarn.lock
Outdated
@@ -0,0 +1,772 @@ | |||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
m: You can remove this file, it was probably generated before you added the package to the workspace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the hint, removed it
packages/nestjs/package.json
Outdated
"optionalDependencies": { | ||
"opentelemetry-instrumentation-fetch-node": "1.2.0" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get rid of this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
# Official Sentry SDK for NestJS | ||
|
||
This SDK is considered **experimental and in an alpha state**. It may experience breaking changes. Please reach out on | ||
[GitHub](https://github.com/getsentry/sentry-javascript/issues/new/choose) if you have any feedback or concerns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should flesh out the readme a bit more. Ideally we get it to a similar state as the readme of the @sentry/node
package with basic setup instructions and how to use. Once we add more features to this package we can update this readme again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff!
dismissing because some critical things are still missing
This reverts commit 7c38b7f.
packages/nestjs/package.json
Outdated
@@ -0,0 +1,71 @@ | |||
{ | |||
"name": "@sentry/nestjs", | |||
"version": "8.11.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be 8.12.0
now right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
packages/nestjs/package.json
Outdated
"author": "Sentry", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=14.18" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should align this with the minimum supported version of nest since we also don't test for 14.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Implements basic nest js package as wrapper on top of nest js
From my sample app: