Comments (12)
https://github.com/keymetrics/pmx-2/blob/master/src/features/notify.ts#L37
from pm2-io-apm.
Why closing it?
from pm2-io-apm.
Misunderstood the title, currently everything expect that the notify
send an error. Both frontend and backend, so i think we can just force it to be an error.
If people want to send additional metadata, they need to attach it to the error object like we do with the express middleware for example.
from pm2-io-apm.
It really depends on what notify mean !
Does it mean :
- notify me if an error occurred ?
- or just notify me when an event is emitted ?
We can have a notify method and a notifyError method if we want to do both.
from pm2-io-apm.
or just notify me when an event is emitted
We have pmx.emit
event specially for this, and you can setup alert on it.
from pm2-io-apm.
We will need to rename this methods anyway.
Example for custom error handling on newrelic:
newrelic.noticeError(e, { message: "record custom event failed" });
from pm2-io-apm.
Of course we can change the high level API but for the event process:exception
sent to the backend, the data sended should be in the form of an error, in the present or the future.
We can maybe add different event with like process:error
?
from pm2-io-apm.
from pm2-io-apm.
I think we just should reserve the event process:exception
for runtime error that can't be avoided (= crash), and process:error
that are handled by the user
from pm2-io-apm.
Currently, send method in transport class can send any kind of object.
from pm2-io-apm.
Also note how pmx try to adapt the object sended via pmx.notify
: https://github.com/keymetrics/pmx-2/blob/master/src/features/notify.ts#L134
from pm2-io-apm.
pmx.notifyError(new Error(msg), { context })
from pm2-io-apm.
Related Issues (20)
- Can't resolve 'async_hooks'
- NotifyFeature.getSafeError
- Outdated transitive dependency on continuation-local-storage leads to warnings
- Network metric results in MaxListenerExceededWarning errors HOT 1
- TypeError: Cannot convert undefined or null to object HOT 1
- PM2-io-apm always logs unhandledRejection and uncaughtException to error stream HOT 1
- no monitoring of worker_threads
- v5 doesn't work with v4 config for standalone
- Add method that can get process info
- io.meter is missing samples and timeframe Options in typescript HOT 2
- help - problems updating opencensus
- Memory leak due to res.once("finish")
- Importing @pm2/io breaks vscode debugging
- old dependency [email protected] HOT 3
- Does standalone mode work with free version
- Unmonitor does not persist on reboot HOT 1
- Latest version (5.0.1) committed not tagged/released HOT 9
- Update semver to 7.5.2 for security vulnerabilty HOT 3
- Security Vulnerability with semver version from opencensus
- Security vulnerability with loadash package version.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pm2-io-apm.