elastic apm

This commit is contained in:
Torsten 2023-02-10 18:53:20 +02:00
parent 67fd6607f4
commit 0b666d5dd5
3 changed files with 34 additions and 2 deletions

View File

@ -35,9 +35,9 @@ gem "passenger" , require: "phusion_passenger/rack_handler"
gem "bootsnap", require: false
group :production do
end
gem 'newrelic_rpm'
end
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 ]

View File

@ -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

14
config/elestic_apm.yml Normal file
View File

@ -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'