Skip to content

Commit 6a3a9bf

Browse files
authored
Feature: Added RoRvsWild (#89)
1 parent fe1ce86 commit 6a3a9bf

4 files changed

Lines changed: 61 additions & 2 deletions

File tree

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ group :development, :test do
7575
# Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/]
7676
gem "rubocop-rails-omakase", require: false
7777

78-
gem "dotenv"
78+
gem "dotenv"
7979

8080
# Git hooks manager - automatically runs RuboCop before commits
8181
gem "lefthook", require: false
@@ -92,4 +92,8 @@ group :test do
9292
gem "selenium-webdriver"
9393
end
9494

95+
# Backup data to S3
9596
gem "litestream", "~> 0.14.0"
97+
98+
# Monitor performance
99+
gem "rorvswild", "~> 1.9"

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ GEM
397397
actionpack (>= 5.2)
398398
railties (>= 5.2)
399399
rexml (3.4.1)
400+
rorvswild (1.9.2)
400401
rouge (4.6.0)
401402
rubocop (1.79.2)
402403
json (~> 2.3)
@@ -543,6 +544,7 @@ DEPENDENCIES
543544
puma (>= 5.0)
544545
rails!
545546
redcarpet (~> 3.6)
547+
rorvswild (~> 1.9)
546548
rouge (~> 4.0)
547549
rubocop-rails-omakase
548550
ruby-openai (~> 8.2)

app/views/layouts/application.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@
279279
on
280280
<%= link_to "Rails #{Rails.version}", "https://rubyonrails.org", class: "underline hover:text-gray-600 transition" %>.</div>
281281
</div>
282-
<div>This project is open source — <%= link_to "contribute on GitHub", "https://github.com/newstler/why_ruby", class: "underline hover:text-gray-600 transition", target: "_blank", rel: "noopener" %>.</div>
282+
<div>This project is open source — <%= link_to "contribute on GitHub", "https://github.com/newstler/why_ruby", class: "underline hover:text-gray-600 transition", target: "_blank", rel: "noopener" %>. Monitored with <%= link_to "RorVsWild", "https://www.rorvswild.com/applications/136539/requests", class: "underline hover:text-gray-600 transition", target: "_blank", rel: "noopener" %>.</div>
283283
</div>
284284

285285
<!-- Center column - narrower for logo -->
@@ -317,6 +317,7 @@
317317
<div>Built with ❤️ in <%= link_to "Ruby #{RUBY_VERSION}", "https://www.ruby-lang.org/", class: "underline hover:text-gray-600 transition" %>
318318
on <%= link_to "Rails #{Rails.version}", "https://rubyonrails.org", class: "underline hover:text-gray-600 transition" %>.</div>
319319
<div>This project is open source — <%= link_to "contribute on GitHub", "https://github.com/newstler/why_ruby", class: "underline hover:text-gray-600 transition", target: "_blank", rel: "noopener" %>.</div>
320+
<div>Monitored with <%= link_to "RorVsWild", "https://www.rorvswild.com/applications/136539/requests", class: "underline hover:text-gray-600 transition", target: "_blank", rel: "noopener" %>.</div>
320321
</div>
321322

322323
<!-- Legal links -->

config/rorvswild.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
development:
2+
# Widget position
3+
# widget: top-left, top-right, bottom-left, bottom-right or hidden
4+
5+
# Open files in your text editor by clicking from the local widget.
6+
# VSCode: vscode://file${path}:${line}
7+
# Sublime: subl://${path}:${line}
8+
# It should be set with an env variable when developers are not using the same editor.
9+
editor_url: <%= ENV.fetch("RORVSWILD_EDITOR_URL", "vscode://file${path}:${line}") %>
10+
11+
production:
12+
api_key: g96HuL6g3cx19mXsoX95
13+
# ignore_requests: # Do not monitor the following actions
14+
# - SecretController#index
15+
# ignore_jobs: # Do not monitor the following jobs
16+
# - SecretJob
17+
# ignore_exceptions: # Do not record the following exceptions
18+
# - ActionController::RoutingError # By default to ignore 404
19+
# ignore_plugins:
20+
# - ActionController
21+
# - ActionMailer
22+
# - ActionView
23+
# - ActiveJob
24+
# - ActiveRecord
25+
# - DelayedJob
26+
# - Elasticsearch
27+
# - Mongo
28+
# - NetHttp
29+
# - Redis
30+
# - Resque
31+
# - Sidekiq
32+
#
33+
# logger: log/rorvswild.log # By default it uses Rails.logger or Logger.new(STDOUT)
34+
#
35+
# # Deployment tracking is working without any actions from your part if the Rails app
36+
# # is inside a Git repositoriy, is deployed via Capistrano.
37+
# # In the other cases, you can provide the following details.
38+
# deployment:
39+
# revision: <%= "Anything that will return the deployment version" %> # Mandatory
40+
# description: <%= "Eventually if you have a description such as a Git message" %>
41+
# author: <%= "Author's name of the deployment" %>
42+
# email: <%= "emailOf@theAuthor.example" %>
43+
#
44+
# Sampling allows to send a fraction of jobs and requests.
45+
# If your app is sending hundred of millions of requests per month,
46+
# you will probably get the same precision if you send only a fraction of it.
47+
# Thus, it decreases the bill at the end of the month. It's also a mitigation if
48+
# your app is a target of a DoS. There are 2 parameters to dissociate requests and jobs.
49+
# Indeed, for an app handling a lot of request but very few jobs, it makes sens to sample
50+
# the former but not the latter.
51+
# request_sampling_rate: 0.25 # 25% of requests are sent
52+
# job_sampling_rate: 0.5 # 50% of jobs are sent

0 commit comments

Comments
 (0)