tingyun_rpm 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ting_yun/agent/collector/transaction_sampler.rb +1 -1
- data/lib/ting_yun/agent/collector/transaction_sampler/slowest_sample_buffer.rb +1 -1
- data/lib/ting_yun/agent/cross_app/cross_app_tracing.rb +1 -4
- data/lib/ting_yun/version.rb +1 -1
- data/lib/tingyun_rpm.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80bd446f43a64f65e757da773a727f5220d1ca64
|
4
|
+
data.tar.gz: c8a3517111fbbc4309fdf4137646ad7429ddc8e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a12c3592ca62c63565348a7cb7e511882d4b9d59722762e10940ec5165bda98e9638c840c28b0f654ba71f1700ecb0d99a741e3a2029e5fd65d54538c0182d5
|
7
|
+
data.tar.gz: b9d8043e950d0fbd0d1b31579e6026b247a1a47dbd0d1a13fd599727edfa645f5d8626f4865e3a02f47ebfeb1aa3c76d3013cda0849cc58863733b9dd8069aa2
|
@@ -158,7 +158,7 @@ module TingYun
|
|
158
158
|
def append_backtrace(node, duration)
|
159
159
|
if duration*1000 >= Agent.config[:'nbs.action_tracer.stack_trace_threshold']
|
160
160
|
trace = caller.reject! { |t| t.include?('tingyun_rpm') }
|
161
|
-
trace = trace.first(
|
161
|
+
trace = trace.first(20)
|
162
162
|
node[:stacktrace] = trace
|
163
163
|
end
|
164
164
|
|
@@ -82,7 +82,7 @@ module TingYun
|
|
82
82
|
end
|
83
83
|
rescue => err
|
84
84
|
TingYun::Agent.logger.error "Uncaught exception while finishing an HTTP request trace", err
|
85
|
-
|
85
|
+
raise
|
86
86
|
end
|
87
87
|
|
88
88
|
|
@@ -171,9 +171,6 @@ module TingYun
|
|
171
171
|
txn_guid = state.client_transaction_id || state.request_guid
|
172
172
|
state.transaction_sample_builder.trace.tx_id = txn_guid
|
173
173
|
request[TY_ID_HEADER] = "#{cross_app_id};c=1;x=#{txn_guid}"
|
174
|
-
|
175
|
-
rescue TingYun::Agent::CrossAppTracing::Error => err
|
176
|
-
TingYun::Agent.logger.debug "Not injecting x-process header", err
|
177
174
|
end
|
178
175
|
|
179
176
|
# Returns +true+ if Cross Application Tracing is enabled, and the given +response+
|
data/lib/ting_yun/version.rb
CHANGED
data/lib/tingyun_rpm.rb
CHANGED
@@ -23,9 +23,9 @@
|
|
23
23
|
|
24
24
|
require 'ting_yun/frameworks'
|
25
25
|
|
26
|
-
|
26
|
+
|
27
27
|
#if the agent had started in manual , then shouldn't start in auto again
|
28
|
-
unless
|
28
|
+
unless TingYun::Agent.agent
|
29
29
|
if defined?(Rails::VERSION)
|
30
30
|
if Rails::VERSION::MAJOR.to_i >= 3
|
31
31
|
module TingYun
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tingyun_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tingyun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|