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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76cf4f6fc864adb7857d36f09fad87c9a107767f
4
- data.tar.gz: 8f56531a2195255e42711438b01d2cf1ca834d06
3
+ metadata.gz: 80bd446f43a64f65e757da773a727f5220d1ca64
4
+ data.tar.gz: c8a3517111fbbc4309fdf4137646ad7429ddc8e1
5
5
  SHA512:
6
- metadata.gz: 030c3c16cf62bdb0dade22e4c65ddf17af9170e537a0b9cffb68d61ecda6e9f6348deb923cfd9e6025c44a7649c628e57fba770be7acef42bd2ef2d8328f0d9a
7
- data.tar.gz: 600a8d6e656add40a7f6f1eb898347d4c366598c9266a4dbb6d3434df64d23d2e134f846fdf02ef527f5f063d81e7d850d72ba47ac9e4d100d30f2f84e5363a1
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(40) if trace.length > 40
161
+ trace = trace.first(20)
162
162
  node[:stacktrace] = trace
163
163
  end
164
164
 
@@ -8,7 +8,7 @@ module TingYun
8
8
  class TransactionSampler
9
9
  class SlowestSampleBuffer < TransactionSampleBufferBase
10
10
 
11
- CAPACITY = 1
11
+ CAPACITY = 20
12
12
 
13
13
  def capacity
14
14
  CAPACITY
@@ -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+
@@ -8,7 +8,7 @@ module TingYun
8
8
 
9
9
  MINOR = 1
10
10
 
11
- TINY = 3
11
+ TINY = 4
12
12
 
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
data/lib/tingyun_rpm.rb CHANGED
@@ -23,9 +23,9 @@
23
23
 
24
24
  require 'ting_yun/frameworks'
25
25
 
26
- require 'pry'
26
+
27
27
  #if the agent had started in manual , then shouldn't start in auto again
28
- unless defined?(::TingYun::Agent) && TingYun::Agent.agent
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.3
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-08-23 00:00:00.000000000 Z
11
+ date: 2016-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake