puma-newrelic-codeur 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puma/newrelic/sampler.rb +2 -2
- data/lib/puma/newrelic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0195325b801d6caeb6d91cb7f4bed411816254c595e409946f2b9213722082d0'
|
4
|
+
data.tar.gz: 3593843db70aae24a4471b5b17b806bf13e7fbc5a99636438c119f619efbe8b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ac929fb8eec76aa714264a8c77e169a940c108c75ea795fe5c8e9cc9a5ea386a045c2aabbf4feac1ba7ea81ab8f67bb670c3a52dea07b553efbfdf325177d43
|
7
|
+
data.tar.gz: e29a3722c3ff9c5d10af3dc28be114ee87cb268294048dd255ddcaebeeaaaecbb5f6c9724c5fdca19766c8d02a8d079b4047a259c700e4f2ee96d7bf9b9a5afa
|
@@ -5,8 +5,8 @@ module Puma
|
|
5
5
|
module NewRelic
|
6
6
|
class Sampler
|
7
7
|
def initialize(launcher)
|
8
|
-
@newrelic_config = YAML.load_file("config/newrelic.yml", aliases: true)[ENV["RAILS_ENV"]]
|
9
|
-
config = @newrelic_config[
|
8
|
+
@newrelic_config = YAML.load_file("config/newrelic.yml", aliases: true)[ENV["RAILS_ENV"]] || {}
|
9
|
+
config = @newrelic_config['puma'] || {}
|
10
10
|
@launcher = launcher
|
11
11
|
@sample_rate = config.fetch("sample_rate", 23)
|
12
12
|
@keys = config.fetch("keys", %i[backlog running pool_capacity max_threads requests_count]).map(&:to_sym)
|