scout_apm 1.2.0.pre12 → 1.2.0.pre13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/scout_apm/config.rb +4 -0
- data/lib/scout_apm/environment.rb +2 -1
- data/lib/scout_apm/store.rb +1 -5
- data/lib/scout_apm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dd9ed781be96c9560a930cd06d77f1e16dc5850
|
4
|
+
data.tar.gz: 55e2e5b19b2b7cba3762acfbf7770885a7aa587e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd9b980f60e9acf3afaa82ced352a3b1af769fed1daadeb08ed583789b611801c67aabbf8ed1ac2141c56194effd5d489e74d4e344a3735ecee138874c714b5
|
7
|
+
data.tar.gz: 7c5ba8af066c1416f9edfd44488f2309868d42d8a528ac68685e5ba39f6f82a420acc3e24b0843a37f385bfd793e019821e0eefceb9254bbfb5a228ff390ca91
|
data/.gitignore
CHANGED
data/lib/scout_apm/config.rb
CHANGED
@@ -104,7 +104,8 @@ module ScoutApm
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def hostname
|
107
|
-
|
107
|
+
config_hostname = Agent.instance.config.value("hostname", !Agent.instance.config.config_file_exists?)
|
108
|
+
@hostname ||= config_hostname || platform_integration.hostname
|
108
109
|
end
|
109
110
|
|
110
111
|
# Returns the whole integration object
|
data/lib/scout_apm/store.rb
CHANGED
@@ -121,11 +121,7 @@ module ScoutApm
|
|
121
121
|
# TODO: Figure out a way to not have this duplicate what's in Samplers, and also on server's ingest
|
122
122
|
PASSTHROUGH_METRICS = ["CPU", "Memory", "Instance", "Controller"]
|
123
123
|
|
124
|
-
#
|
125
|
-
#
|
126
|
-
# A hash of { MetricMeta => MetricStat }
|
127
|
-
# This represents the aggregate metrics over the course of the minute.
|
128
|
-
# "ActiveRecord/all", "View/all", "HTTP/all" and similar
|
124
|
+
# Absorbs a single new metric into the aggregates
|
129
125
|
def absorb(metric)
|
130
126
|
meta, stat = metric
|
131
127
|
|
data/lib/scout_apm/version.rb
CHANGED