ruby-rack.json 2.0 KB

123456
  1. {
  2. "html": "<div class=\"section\" id=\"rack-sinatra-etc\">\n<h2>Rack (Sinatra etc.)</h2>\n<div class=\"section\" id=\"installation\">\n<h3>Installation</h3>\n<p>Install the SDK via Rubygems by adding it to your <code class=\"docutils literal\"><span class=\"pre\">Gemfile</span></code>:</p>\n<div class=\"highlight-ruby\"><div class=\"highlight\" style=\"background: #ffffff\"><pre style=\"line-height: 125%\"><span></span><span style=\"color: #111111\">gem</span> <span style=\"color: #e8535a\">&quot;sentry-raven&quot;</span>\n</pre></div>\n</div>\n</div>\n<div class=\"section\" id=\"configuration\">\n<h3>Configuration</h3>\n<p>Add <code class=\"docutils literal\"><span class=\"pre\">use</span> <span class=\"pre\">Raven::Rack</span></code> to your <code class=\"docutils literal\"><span class=\"pre\">config.ru</span></code> or other rackup file (this is\nautomatically inserted in Rails):</p>\n<div class=\"highlight-ruby\"><div class=\"highlight\" style=\"background: #ffffff\"><pre style=\"line-height: 125%\"><span></span><span style=\"color: #2eb0f7\">require</span> <span style=\"color: #e8535a\">&#39;raven&#39;</span>\n\n<span style=\"color: #111111\">Raven</span><span style=\"color: #4b4f5c\">.</span><span style=\"color: #111111\">configure</span> <span style=\"color: #2eb0f7\">do</span> <span style=\"color: #4b4f5c\">|</span><span style=\"color: #111111\">config</span><span style=\"color: #4b4f5c\">|</span>\n <span style=\"color: #111111\">config</span><span style=\"color: #4b4f5c\">.</span><span style=\"color: #111111\">dsn</span> <span style=\"color: #4b4f5c\">=</span> <span style=\"color: #e8535a\">&#39;___DSN___&#39;</span>\n<span style=\"color: #2eb0f7\">end</span>\n\n<span style=\"color: #111111\">use</span> <span style=\"color: #111111\">Raven</span><span style=\"color: #4b4f5c\">::</span><span style=\"color: #111111\">Rack</span>\n</pre></div>\n</div>\n</div>\n</div>\n",
  3. "link": "https://docs.getsentry.com/clients/ruby/integrations/rack/",
  4. "id": "ruby-rack",
  5. "name": "Rack"
  6. }