getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.97k stars 1.57k forks source link

Add Nestjs integration to Docs #2950

Closed MrXploder closed 3 years ago

MrXploder commented 4 years ago

Summary

I kindly ask for a official guide to integrate Sentry into Nestjs application

Motivation

Why should this be worked on? What problems or use cases does it solve or improve?

There are currently several guides to implement Sentry on express, node, react, vue, etc. There are none of them to do the same thing into Nestjs application. Even if it is a simple process, it should be written in the docs.

dcramer commented 4 years ago

Probably makes the most sense in our JS repo since its a request for a framework integration

MrXploder commented 4 years ago

I'm currently using https://www.npmjs.com/package/@ntegral/nestjs-sentry

I dont know if you people support external libs but it should be relatively simple to add it to the docs

anthowm commented 4 years ago

I use nest raven. I think sentry can support nestjs like it does for angular without third-party libraries. https://stackoverflow.com/questions/58239364/integrate-nestjs-with-sentry

shaolinjr commented 3 years ago

Hey guys! Please!! This would help a lot on how to use sentry with nest!

lobsterkatie commented 3 years ago

@shaolinjr - I'm not super familiar with nest, but the npm package that @MrXploder linked seems like a good place to start. Have you tried that? Nest Raven, in spite of the name, also seems to be a reasonably up-to-date solution.

Or is this literally just a request for us to add one or the other of those two to https://docs.sentry.io/platforms/#community-supported? (UPDATE: I just checked, and nestjs-sentry is actually already linked there. UPDATE^2: Just added nest-raven.)

AbhiPrasad commented 3 years ago

Closing this issue as we've updated the docs. Please reach out if you have any other issues or feedback. Thanks!

belwalshubham commented 1 year ago

hey , how can I integrate performance monitoring in nestjs on sentry ?

AbhiPrasad commented 1 year ago

Hey @belwalshubham we don't have a first class integration for NestJS atm. Please see https://github.com/getsentry/sentry-javascript/discussions/5578 for more details.

In the meantime, you'll have to manually instrument your application to get performance data. See: https://docs.sentry.io/platforms/node/performance/