diff --git a/Gemfile b/Gemfile index 897c5de..7c0e505 100644 --- a/Gemfile +++ b/Gemfile @@ -35,9 +35,9 @@ gem "passenger" , require: "phusion_passenger/rack_handler" gem "bootsnap", require: false group :production do + gem 'newrelic_rpm' end -gem 'newrelic_rpm' - +gem 'elastic-apm' group :development, :test do # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem gem "debug", platforms: %i[ mri mingw x64_mingw ] diff --git a/Gemfile.lock b/Gemfile.lock index 73874e3..8d981f9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -142,10 +142,17 @@ GEM devise (>= 4.0) domain_name (0.5.20190701) unf (>= 0.0.5, < 1.0.0) + elastic-apm (4.6.0) + concurrent-ruby (~> 1.0) + http (>= 3.0) + ruby2_keywords erubi (1.12.0) erubis (2.7.0) execjs (2.8.1) ffi (1.15.5) + ffi-compiler (1.0.1) + ffi (>= 1.0.0) + rake formatador (1.1.0) friendly_id (5.5.0) activerecord (>= 4.0.0) @@ -187,9 +194,15 @@ GEM nokogiri (>= 1.6.0) ruby_parser (~> 3.5) htmlentities (4.3.4) + http (5.1.1) + addressable (~> 2.8) + http-cookie (~> 1.0) + http-form_data (~> 2.2) + llhttp-ffi (~> 0.4.0) http-accept (1.7.0) http-cookie (1.0.5) domain_name (~> 0.5) + http-form_data (2.3.0) i18n (1.12.0) concurrent-ruby (~> 1.0) image_processing (1.12.2) @@ -223,6 +236,9 @@ GEM listen (3.7.1) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) + llhttp-ffi (0.4.0) + ffi-compiler (~> 1.0) + rake (~> 13.0) loofah (2.19.1) crass (~> 1.0.2) nokogiri (>= 1.5.9) @@ -339,6 +355,7 @@ GEM rinku (2.0.6) ruby-vips (2.1.4) ffi (~> 1.12) + ruby2_keywords (0.0.5) ruby_parser (3.19.2) sexp_processor (~> 4.16) rubyzip (2.3.2) @@ -441,6 +458,7 @@ DEPENDENCIES debug devise devise-async + elastic-apm guard guard-minitest haml-rails diff --git a/config/elestic_apm.yml b/config/elestic_apm.yml new file mode 100644 index 0000000..c8d17dd --- /dev/null +++ b/config/elestic_apm.yml @@ -0,0 +1,14 @@ +# config/elastic_apm.yml: + +# Set the service name - allowed characters: a-z, A-Z, 0-9, -, _ and space +# Defaults to the name of your Rails app +service_name: 'www.hubfeenix.fi' + +# Use if APM Server requires a secret token +secret_token: 'sOxAZ0S8xC07UjhmtZ' + +# Set the custom APM Server URL (default: http://localhost:8200) +server_url: 'https://b5e6398f1b084f58a635a45629234197.apm.us-central1.gcp.cloud.es.io:443' + +# Set the service environment +environment: 'production'