123456 |
- {
- "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\">"sentry-raven"</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\">'raven'</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\">'___DSN___'</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",
- "link": "https://docs.getsentry.com/clients/ruby/integrations/rack/",
- "id": "ruby-rack",
- "name": "Rack"
- }
|