handling   1162

« earlier    

Catch all uncaughtException for Node app - Stack Overflow
[[Also worth noting that node follows the unix principle, meaning that each application should do one thing well. In the case of wanting an email when the app crashes, that's outside the scope of your app. Instead, you crash (and log) as @xShirase says, and then have something else (e.g. systemd or logwatch) taking note of that and sending emails when a threshold is reached (even if that threshold is "any error").

I think there's like a set of 'stages of enlightenment' that Node devs seem to all go through (at least, all the ones I've known/observed have, myself included), where you start off with this enterprisey-best-practice background of trying to package everything a certain way and only later learn to let go and trust the environment and supporting tools. 12factor.net is a good resource to help with that, but a lot of it is learning what tools are available. I've only recently started using things like systemd and logstash to do what i used to do with pm2 and custom code. No new wheels. :)]]
Node.js  error  handling  philosophy  JavaScript 
12 days ago by dandv
Relic Solution - Scripted Browser Error Handling and Alerting on Step Failures - Proven Practice: Level Up Relic Solutions / Level Up: Synthetics - New Relic Explorers Hub
In a Scripted Browser monitor there maybe some steps in the journey that you don’t want the monitor to alert on, such as checking for the existence of a modal overlay for a campaign, so you can close it, and then resume checking other critical elements. Or sometimes, if a step fails, there maybe some extra steps you want to take before failing the monitor, like adding a custom attribute to your SyntheticCheck event 7.

This is where onRejected handler functions for the .then() method comes in handy. Think of them as a callback (errback) function but for unresolved promises / errors. I find this is sometimes under utilized, but it can add some versatility to your script and your alerting.
new  relic  synthetic  error  handling 
6 weeks ago by amilnarski

« earlier    

related tags

!course-topics  'as  'no  "medicare  -  17  2017  2018  754  abuse  action  administration  after  aircraft  all"  allegations  alternative  and  angular  annotation  architecture  are  arrested  art  article  as  asian-efficiency  asianefficiency  asp.net  async  authentication  aviation  await  bestpractice  bestpractices  binding  bishops'  blog  body  bombing  bounce  boy  budget  bus  business  c  candidates  character  chrysler  church’s  cism  cissp  clinical  clojure  clojurescript  cls  code  collection  comparison  context  controller  coroutine  cors  counterproposal  craig  crash  criminality'  crisis  criticisms  criticizes  data  days  death  debt  declarative  defer  democratic  design  development  discussion  disposal  diy  documentation  dom  domain  draft  ecu  elixir  elm  email  encoding  eror  error-handling  error  errorr  errors  eu  events  example  exception  exceptions  experiment  facebook’s  failsafe  failure  fake  fallback  fetch  field  file  flow  flowchart  for  forms  fp  framework  francis  gdpr  general  github  go  go2  golang  golang2  grace  ground  guide  handbook  handle  haskell  hazardous  hearts:  herkimer  his  hospital  how  howto  http  i've  idiomatic  ieee754  important  improvements  in  incident  information  injured  input  interface  investigation  ios  irvine  itp  java  javascript  json  june  k8s  kotlin  kubernetes  launch  levein's  library  like  lin  line  list  lockerbie  logging  mail  maths  medical  medium  megachurch  memory  microservices  minivans:  misconduct  model  models  monitoring  mouser  mvc  new  news  nil  nim  node.js  node  non-nil  non  notification  nxp  objection  of  oneida  openshift  optionals  output  pacifica  package  pain  panic  pastor  percentages  philosophy  phoenix  pii  point  points  poor  pope  porters  powershell  privacy  productivity  programming  promises  protection  protest  python  raigmore  rails  railway  ram  react  read  recovery  reference  relic  remotedata  resigns  resource  resources  romanelizarov  rov  ruby  rules  sales  sans  security  seen'  sell  selling  serverless  sexual  simple  slave  smells  software  specific  steven  strategy  surrender  swift  swift3  swift4  synthetic  teenager  test  testing  thompson  throw  tipps  to  tolearn  toread  totry  tounderstand  trash  try  tug  tutorial  u.s.  ugv  uja1023  unicode  unproductive  unwrap  unwrapping  vanecek  vue  vue2  vuejs  waste  wheel  work  write  xcode  xcode9 

Copy this bookmark:



description:


tags: