flyingmachine / whoops Goto Github PK
View Code? Open in Web Editor NEWan event logger and interface
Home Page: http://www.whoopsapp.com
License: MIT License
an event logger and interface
Home Page: http://www.whoopsapp.com
License: MIT License
We've been running the Whoops for a while and we've accumulated a bunch of logging messages. Now when we tried to examine some of messages, the response from the site hosting the Whoops engine is very slow.
I can see two reasons why that's the case. 1) By default, the whoops_events collection is not capped (we currently have more than 500k events being stored); 2) no indexes were created on whoops_events collection. Indexing on event_group_id, event_time, and keywords should help.
Regarding capped collection for whoops_events, is it possible and safe for us to convert the whoops_events collection into a capped one without dropping the collection and recreating it?
It would be great if you could make some changes to address this issue.
Thanks!
Alex
It could be great to explain on the website (http://www.whoopsapp.com/) how to add HTTP authentification to the server and manage it in the logger configuration.
Even better, add it to the bootstrap with a line to uncomment.
I created a Rails app to host your Whoops Rails engine. When I run this app on my local machine, everything worked fine. I was able to log message to the mongodb via WhoopsLogger.log method. However, the same mechanism did not work when sending logging message to my rails app containing the Whoops Rails engine. I got an internal server error. Looking at Rails log file, it contains errors like this:
Started POST "/events/" for 170.36.242.221 at Fri Aug 12 17:13:53 -0700 2011
Processing by EventsController#create as JSON
Parameters: {"event"=>{"details"=>nil, "service"=>"MyService", "event_group_identifier"=>"My App", "event_time"=>Fri Aug 12 17:13:28 -0700 2011, "environment"=>"development", "message"=>"My logging message", "event_type"=>"debug", "logger_strategy_name"=>"default::basic"}}
Sent mail to #Mongoid::Criteria:0x7fc51a502170 (8ms)
Completed 500 Internal Server Error in 22ms
ArgumentError (A sender (Return-Path, Sender or From) required to send a message):
Any idea why this happens?
My Rails app is running Rails 3.0.9 on Ruby 1.8.7.
Appreciate your any help!
Sincerely,
Alex
I think it's still useful to see the actual exception message for thrown exceptions. Any chance of getting that in there somewhere (if there is a message)?
Hey @flyingmachine, your gem looks awesome, do you have any plans on upgrade to Mongoid 3?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.