<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>ruby on rails php errbit airbrake errors monitoring on random thoughts</title><link>https://awesomeprogrammer.com/categories/ruby-on-rails-php-errbit-airbrake-errors-monitoring/</link><description>Recent content in ruby on rails php errbit airbrake errors monitoring on random thoughts</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Wed, 03 Oct 2012 00:00:00 +0000</lastBuildDate><atom:link href="https://awesomeprogrammer.com/categories/ruby-on-rails-php-errbit-airbrake-errors-monitoring/index.xml" rel="self" type="application/rss+xml"/><item><title>Open source airbrake alternative</title><link>https://awesomeprogrammer.com/blog/2012/10/03/open-source-airbrake-alternative/</link><pubDate>Wed, 03 Oct 2012 00:00:00 +0000</pubDate><guid>https://awesomeprogrammer.com/blog/2012/10/03/open-source-airbrake-alternative/</guid><description><![CDATA[<p>Monitoring your applications can be tricky, especially when you have to maintain more and more of them, that uses various technologies. So that&rsquo;s why programmers helps other programmers with those tasks and nowadays you can choose from various monitoring services. I was mostly focused on <a href="https://airbrake.io/pages/home">airbrake</a>, but overall it seems a little bit pricey for me. I mean it&rsquo;s a great piece of software that fully supports Ruby on Rails and iOS and there are bunch of addons for PHP, .Net, Java, Python - you name it. But I needed something relatively simple that could allow me to monitor my apps build with RoR and PHP only, and I found shiny piece of code named <a href="https://github.com/errbit/errbit">errbit</a>.</p>
<p>Errbit uses official airbrake gems for contacting with your Rails apps, you can also hook it up with PHP if you want.</p>
<p>It runs on mongo, and I will provide here a short (very overall) quick-start guide for all interested (tested under Ubuntu 12.04 Server).</p>
<p>Let&rsquo;s start by installing latests stable release of MongoDB, as official Ubuntu repositories are a little bit behind:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo su -
</span></span><span style="display:flex;"><span>apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
</span></span><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen&#34;</span> &gt; /etc/apt/sources.list.d/10gen.list
</span></span><span style="display:flex;"><span>apt-get update <span style="color:#f92672">&amp;&amp;</span> apt-get install mongodb-10gen
</span></span></code></pre></div><p>It will add new source list for aptitude, you may want to <a href="http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/#configure-mongodb">configure mongo</a> for your needs after installing. Also don&rsquo;t forget to create db and user on your production server - take a peak in the <a href="http://www.mongodb.org/display/DOCS/Security+and+Authentication">manual</a> or simply login to mongo with <code>mongo</code> command and type:</p>
<pre tabindex="0"><code>// select db
use errbit
// give joe read/write access to the errbit database
db.addUser(&#34;joe&#34;, &#34;PasswordOfYourChoice&#34;)
</code></pre><p>Now lets install required packages (if you&rsquo;re not planning using errbit with php you can skip php5-curl).</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo apt-get install libxml2 libxml2-dev libxslt-dev libcurl4-openssl-dev php5-curl
</span></span></code></pre></div><p>I assume you&rsquo;ve already cloned errbit repo, personally I&rsquo;m using <a href="https://rvm.io/integration/passenger/">RVM with passenger</a> for running my apps, so don&rsquo;t forget to setup <em>.ruby-version</em> or <em>.rvmrc</em> file, eg:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>rvm use 1.9.3
</span></span><span style="display:flex;"><span>rvm gemset create errbit
</span></span><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;1.9.3@errbit&#34;</span> &gt; .ruby-version
</span></span></code></pre></div><p>and don&rsquo;t forget about <em>setup_load_paths.rb</em> file (I&rsquo;ve spent 1 hour debugging passenger and wondering why the hell it&rsquo;s not picking up proper gemset, my bad :P).</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-ruby" data-lang="ruby"><span style="display:flex;"><span><span style="color:#75715e"># config/setup_load_paths.rb</span>
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">if</span> <span style="color:#66d9ef">ENV</span><span style="color:#f92672">[</span><span style="color:#e6db74">&#39;MY_RUBY_HOME&#39;</span><span style="color:#f92672">]</span> <span style="color:#f92672">&amp;&amp;</span> <span style="color:#66d9ef">ENV</span><span style="color:#f92672">[</span><span style="color:#e6db74">&#39;MY_RUBY_HOME&#39;</span><span style="color:#f92672">].</span>include?(<span style="color:#e6db74">&#39;rvm&#39;</span>)
</span></span><span style="display:flex;"><span>  <span style="color:#66d9ef">begin</span>
</span></span><span style="display:flex;"><span>    gems_path <span style="color:#f92672">=</span> <span style="color:#66d9ef">ENV</span><span style="color:#f92672">[</span><span style="color:#e6db74">&#39;MY_RUBY_HOME&#39;</span><span style="color:#f92672">].</span>split(<span style="color:#e6db74">/@/</span>)<span style="color:#f92672">[</span><span style="color:#ae81ff">0</span><span style="color:#f92672">].</span>sub(<span style="color:#e6db74">/rubies/</span>,<span style="color:#e6db74">&#39;gems&#39;</span>)
</span></span><span style="display:flex;"><span>    <span style="color:#66d9ef">ENV</span><span style="color:#f92672">[</span><span style="color:#e6db74">&#39;GEM_PATH&#39;</span><span style="color:#f92672">]</span> <span style="color:#f92672">=</span> <span style="color:#e6db74">&#34;</span><span style="color:#e6db74">#{</span>gems_path<span style="color:#e6db74">}</span><span style="color:#e6db74">:</span><span style="color:#e6db74">#{</span>gems_path<span style="color:#e6db74">}</span><span style="color:#e6db74">@global&#34;</span>
</span></span><span style="display:flex;"><span>    require <span style="color:#e6db74">&#39;rvm&#39;</span>
</span></span><span style="display:flex;"><span>    <span style="color:#66d9ef">RVM</span><span style="color:#f92672">.</span>use_from_path! <span style="color:#66d9ef">File</span><span style="color:#f92672">.</span>dirname(<span style="color:#66d9ef">File</span><span style="color:#f92672">.</span>dirname(__FILE__))
</span></span><span style="display:flex;"><span>  <span style="color:#66d9ef">rescue</span> <span style="color:#66d9ef">LoadError</span>
</span></span><span style="display:flex;"><span>    <span style="color:#66d9ef">raise</span> <span style="color:#e6db74">&#34;RVM gem is currently unavailable.&#34;</span>
</span></span><span style="display:flex;"><span>  <span style="color:#66d9ef">end</span>
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">end</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># If you&#39;re not using Bundler at all, remove lines bellow</span>
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">ENV</span><span style="color:#f92672">[</span><span style="color:#e6db74">&#39;BUNDLE_GEMFILE&#39;</span><span style="color:#f92672">]</span> <span style="color:#f92672">=</span> <span style="color:#66d9ef">File</span><span style="color:#f92672">.</span>expand_path(<span style="color:#e6db74">&#39;../Gemfile&#39;</span>, <span style="color:#66d9ef">File</span><span style="color:#f92672">.</span>dirname(__FILE__))
</span></span><span style="display:flex;"><span>require <span style="color:#e6db74">&#39;bundler/setup&#39;</span>
</span></span></code></pre></div><p>If you are good to go you can <code>bundle install</code> and <code>rake errbit:bootstrap</code>. After that take a look at <code>config.yml</code> and <code>mongoid.yml</code> and configure it for you environment. Basically that&rsquo;s it - you will need to also configure proper deployment, but that&rsquo;s all covered in official documentation.</p>
<p>In you Rails application that you want to monitor add <a href="https://github.com/airbrake/airbrake">airbrake gem</a> to <code>Gemfile</code>, bundle install and create <code>config/initializers/errbit.rb</code> that is provided after adding application in Errbit itself.</p>
<p>You can also hook up PHP apps using <a href="https://github.com/flippa/errbit-php">errbit-php</a>. It&rsquo;s simple as cloning the repo, and including code below in some file that is included every request.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-php" data-lang="php"><span style="display:flex;"><span><span style="color:#66d9ef">require_once</span> <span style="color:#e6db74">&#39;errbit-php/lib/Errbit.php&#39;</span>;
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">Errbit</span><span style="color:#f92672">::</span><span style="color:#a6e22e">instance</span>()
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">-&gt;</span><span style="color:#a6e22e">configure</span>(<span style="color:#66d9ef">array</span>(
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#39;api_key&#39;</span>           <span style="color:#f92672">=&gt;</span> <span style="color:#e6db74">&#39;YOUR API KEY&#39;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#39;host&#39;</span>              <span style="color:#f92672">=&gt;</span> <span style="color:#e6db74">&#39;host&#39;</span>,                               <span style="color:#75715e">// don&#39;t try to specify port here
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;port&#39;</span>              <span style="color:#f92672">=&gt;</span> <span style="color:#ae81ff">80</span>,                                   <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;secure&#39;</span>            <span style="color:#f92672">=&gt;</span> <span style="color:#66d9ef">false</span>,                                <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;project_root&#39;</span>      <span style="color:#f92672">=&gt;</span> <span style="color:#e6db74">&#39;/your/project/root&#39;</span>,                 <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;environment_name&#39;</span>  <span style="color:#f92672">=&gt;</span> <span style="color:#e6db74">&#39;production&#39;</span>,                         <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;params_filters&#39;</span>    <span style="color:#f92672">=&gt;</span> <span style="color:#66d9ef">array</span>(<span style="color:#e6db74">&#39;/password/&#39;</span>, <span style="color:#e6db74">&#39;/card_number/&#39;</span>), <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;backtrace_filters&#39;</span> <span style="color:#f92672">=&gt;</span> <span style="color:#66d9ef">array</span>(<span style="color:#e6db74">&#39;#/some/long/path#&#39;</span> <span style="color:#f92672">=&gt;</span> <span style="color:#e6db74">&#39;&#39;</span>)      <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>  ))
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">-&gt;</span><span style="color:#a6e22e">start</span>();
</span></span></code></pre></div><p>It will handle any exceptions and errors (depending on your php.ini configuration) and curl your errbit instance with proper params if anything bad happens :).</p>]]></description><content:encoded><![CDATA[<p>Monitoring your applications can be tricky, especially when you have to maintain more and more of them, that uses various technologies. So that&rsquo;s why programmers helps other programmers with those tasks and nowadays you can choose from various monitoring services. I was mostly focused on <a href="https://airbrake.io/pages/home">airbrake</a>, but overall it seems a little bit pricey for me. I mean it&rsquo;s a great piece of software that fully supports Ruby on Rails and iOS and there are bunch of addons for PHP, .Net, Java, Python - you name it. But I needed something relatively simple that could allow me to monitor my apps build with RoR and PHP only, and I found shiny piece of code named <a href="https://github.com/errbit/errbit">errbit</a>.</p>
<p>Errbit uses official airbrake gems for contacting with your Rails apps, you can also hook it up with PHP if you want.</p>
<p>It runs on mongo, and I will provide here a short (very overall) quick-start guide for all interested (tested under Ubuntu 12.04 Server).</p>
<p>Let&rsquo;s start by installing latests stable release of MongoDB, as official Ubuntu repositories are a little bit behind:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo su -
</span></span><span style="display:flex;"><span>apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
</span></span><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen&#34;</span> &gt; /etc/apt/sources.list.d/10gen.list
</span></span><span style="display:flex;"><span>apt-get update <span style="color:#f92672">&amp;&amp;</span> apt-get install mongodb-10gen
</span></span></code></pre></div><p>It will add new source list for aptitude, you may want to <a href="http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/#configure-mongodb">configure mongo</a> for your needs after installing. Also don&rsquo;t forget to create db and user on your production server - take a peak in the <a href="http://www.mongodb.org/display/DOCS/Security+and+Authentication">manual</a> or simply login to mongo with <code>mongo</code> command and type:</p>
<pre tabindex="0"><code>// select db
use errbit
// give joe read/write access to the errbit database
db.addUser(&#34;joe&#34;, &#34;PasswordOfYourChoice&#34;)
</code></pre><p>Now lets install required packages (if you&rsquo;re not planning using errbit with php you can skip php5-curl).</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo apt-get install libxml2 libxml2-dev libxslt-dev libcurl4-openssl-dev php5-curl
</span></span></code></pre></div><p>I assume you&rsquo;ve already cloned errbit repo, personally I&rsquo;m using <a href="https://rvm.io/integration/passenger/">RVM with passenger</a> for running my apps, so don&rsquo;t forget to setup <em>.ruby-version</em> or <em>.rvmrc</em> file, eg:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>rvm use 1.9.3
</span></span><span style="display:flex;"><span>rvm gemset create errbit
</span></span><span style="display:flex;"><span>echo <span style="color:#e6db74">&#34;1.9.3@errbit&#34;</span> &gt; .ruby-version
</span></span></code></pre></div><p>and don&rsquo;t forget about <em>setup_load_paths.rb</em> file (I&rsquo;ve spent 1 hour debugging passenger and wondering why the hell it&rsquo;s not picking up proper gemset, my bad :P).</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-ruby" data-lang="ruby"><span style="display:flex;"><span><span style="color:#75715e"># config/setup_load_paths.rb</span>
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">if</span> <span style="color:#66d9ef">ENV</span><span style="color:#f92672">[</span><span style="color:#e6db74">&#39;MY_RUBY_HOME&#39;</span><span style="color:#f92672">]</span> <span style="color:#f92672">&amp;&amp;</span> <span style="color:#66d9ef">ENV</span><span style="color:#f92672">[</span><span style="color:#e6db74">&#39;MY_RUBY_HOME&#39;</span><span style="color:#f92672">].</span>include?(<span style="color:#e6db74">&#39;rvm&#39;</span>)
</span></span><span style="display:flex;"><span>  <span style="color:#66d9ef">begin</span>
</span></span><span style="display:flex;"><span>    gems_path <span style="color:#f92672">=</span> <span style="color:#66d9ef">ENV</span><span style="color:#f92672">[</span><span style="color:#e6db74">&#39;MY_RUBY_HOME&#39;</span><span style="color:#f92672">].</span>split(<span style="color:#e6db74">/@/</span>)<span style="color:#f92672">[</span><span style="color:#ae81ff">0</span><span style="color:#f92672">].</span>sub(<span style="color:#e6db74">/rubies/</span>,<span style="color:#e6db74">&#39;gems&#39;</span>)
</span></span><span style="display:flex;"><span>    <span style="color:#66d9ef">ENV</span><span style="color:#f92672">[</span><span style="color:#e6db74">&#39;GEM_PATH&#39;</span><span style="color:#f92672">]</span> <span style="color:#f92672">=</span> <span style="color:#e6db74">&#34;</span><span style="color:#e6db74">#{</span>gems_path<span style="color:#e6db74">}</span><span style="color:#e6db74">:</span><span style="color:#e6db74">#{</span>gems_path<span style="color:#e6db74">}</span><span style="color:#e6db74">@global&#34;</span>
</span></span><span style="display:flex;"><span>    require <span style="color:#e6db74">&#39;rvm&#39;</span>
</span></span><span style="display:flex;"><span>    <span style="color:#66d9ef">RVM</span><span style="color:#f92672">.</span>use_from_path! <span style="color:#66d9ef">File</span><span style="color:#f92672">.</span>dirname(<span style="color:#66d9ef">File</span><span style="color:#f92672">.</span>dirname(__FILE__))
</span></span><span style="display:flex;"><span>  <span style="color:#66d9ef">rescue</span> <span style="color:#66d9ef">LoadError</span>
</span></span><span style="display:flex;"><span>    <span style="color:#66d9ef">raise</span> <span style="color:#e6db74">&#34;RVM gem is currently unavailable.&#34;</span>
</span></span><span style="display:flex;"><span>  <span style="color:#66d9ef">end</span>
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">end</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># If you&#39;re not using Bundler at all, remove lines bellow</span>
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">ENV</span><span style="color:#f92672">[</span><span style="color:#e6db74">&#39;BUNDLE_GEMFILE&#39;</span><span style="color:#f92672">]</span> <span style="color:#f92672">=</span> <span style="color:#66d9ef">File</span><span style="color:#f92672">.</span>expand_path(<span style="color:#e6db74">&#39;../Gemfile&#39;</span>, <span style="color:#66d9ef">File</span><span style="color:#f92672">.</span>dirname(__FILE__))
</span></span><span style="display:flex;"><span>require <span style="color:#e6db74">&#39;bundler/setup&#39;</span>
</span></span></code></pre></div><p>If you are good to go you can <code>bundle install</code> and <code>rake errbit:bootstrap</code>. After that take a look at <code>config.yml</code> and <code>mongoid.yml</code> and configure it for you environment. Basically that&rsquo;s it - you will need to also configure proper deployment, but that&rsquo;s all covered in official documentation.</p>
<p>In you Rails application that you want to monitor add <a href="https://github.com/airbrake/airbrake">airbrake gem</a> to <code>Gemfile</code>, bundle install and create <code>config/initializers/errbit.rb</code> that is provided after adding application in Errbit itself.</p>
<p>You can also hook up PHP apps using <a href="https://github.com/flippa/errbit-php">errbit-php</a>. It&rsquo;s simple as cloning the repo, and including code below in some file that is included every request.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-php" data-lang="php"><span style="display:flex;"><span><span style="color:#66d9ef">require_once</span> <span style="color:#e6db74">&#39;errbit-php/lib/Errbit.php&#39;</span>;
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">Errbit</span><span style="color:#f92672">::</span><span style="color:#a6e22e">instance</span>()
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">-&gt;</span><span style="color:#a6e22e">configure</span>(<span style="color:#66d9ef">array</span>(
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#39;api_key&#39;</span>           <span style="color:#f92672">=&gt;</span> <span style="color:#e6db74">&#39;YOUR API KEY&#39;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#e6db74">&#39;host&#39;</span>              <span style="color:#f92672">=&gt;</span> <span style="color:#e6db74">&#39;host&#39;</span>,                               <span style="color:#75715e">// don&#39;t try to specify port here
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;port&#39;</span>              <span style="color:#f92672">=&gt;</span> <span style="color:#ae81ff">80</span>,                                   <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;secure&#39;</span>            <span style="color:#f92672">=&gt;</span> <span style="color:#66d9ef">false</span>,                                <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;project_root&#39;</span>      <span style="color:#f92672">=&gt;</span> <span style="color:#e6db74">&#39;/your/project/root&#39;</span>,                 <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;environment_name&#39;</span>  <span style="color:#f92672">=&gt;</span> <span style="color:#e6db74">&#39;production&#39;</span>,                         <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;params_filters&#39;</span>    <span style="color:#f92672">=&gt;</span> <span style="color:#66d9ef">array</span>(<span style="color:#e6db74">&#39;/password/&#39;</span>, <span style="color:#e6db74">&#39;/card_number/&#39;</span>), <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>    <span style="color:#e6db74">&#39;backtrace_filters&#39;</span> <span style="color:#f92672">=&gt;</span> <span style="color:#66d9ef">array</span>(<span style="color:#e6db74">&#39;#/some/long/path#&#39;</span> <span style="color:#f92672">=&gt;</span> <span style="color:#e6db74">&#39;&#39;</span>)      <span style="color:#75715e">// optional
</span></span></span><span style="display:flex;"><span><span style="color:#75715e"></span>  ))
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">-&gt;</span><span style="color:#a6e22e">start</span>();
</span></span></code></pre></div><p>It will handle any exceptions and errors (depending on your php.ini configuration) and curl your errbit instance with proper params if anything bad happens :).</p>]]></content:encoded></item></channel></rss>