From fa12c0242aee20ba7a4bcb6c959af0d6d61213a5 Mon Sep 17 00:00:00 2001 From: Isaac Johnson Date: Fri, 21 Jul 2023 08:03:51 -0500 Subject: [PATCH] With NewRelic --- .gitignore | 1 + Gemfile | 3 +++ Gemfile.lock | 12 ++++++++++++ helloworld.rb | 2 ++ 4 files changed, 18 insertions(+) diff --git a/.gitignore b/.gitignore index e3200e0..b27f905 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,4 @@ build-iPhoneSimulator/ # Used by RuboCop. Remote config files pulled in from inherit_from directive. # .rubocop-https?--* +newrelic.yml diff --git a/Gemfile b/Gemfile index fe681c4..4e2c2c1 100644 --- a/Gemfile +++ b/Gemfile @@ -8,3 +8,6 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } gem 'pg' gem 'puma' gem "sinatra" + +gem 'newrelic_rpm' +gem 'newrelic-infinite_tracing' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 8cffe25..a9ab512 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,8 +1,18 @@ GEM remote: https://rubygems.org/ specs: + google-protobuf (3.23.4-x86_64-linux) + googleapis-common-protos-types (1.7.0) + google-protobuf (~> 3.14) + grpc (1.56.2-x86_64-linux) + google-protobuf (~> 3.23) + googleapis-common-protos-types (~> 1.0) mustermann (3.0.0) ruby2_keywords (~> 0.0.1) + newrelic-infinite_tracing (9.3.1) + grpc (~> 1.34) + newrelic_rpm (= 9.3.1) + newrelic_rpm (9.3.1) nio4r (2.5.9) pg (1.5.3) puma (6.3.0) @@ -22,6 +32,8 @@ PLATFORMS x86_64-linux DEPENDENCIES + newrelic-infinite_tracing + newrelic_rpm pg puma sinatra diff --git a/helloworld.rb b/helloworld.rb index 592ac11..c3a618f 100644 --- a/helloworld.rb +++ b/helloworld.rb @@ -1,5 +1,7 @@ require 'sinatra' require 'pg' +require 'newrelic_rpm' +require 'newrelic/infinite_tracing' set :port, 4000 set :bind, '0.0.0.0'