ruby-zipkin 0.2.901 → 0.2.902

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/ruby-zipkin.rb CHANGED
@@ -17,7 +17,7 @@ module RubyZipkin extend self
17
17
  @lock = Mutex.new
18
18
  @service_name = service_name
19
19
  @scribe_port = scribe_port
20
- @sample_rate = 0.1
20
+ @sample_rate = 1
21
21
  @uri_filter_list = uri_filter_list
22
22
  @http_header_filter_list = http_header_filter_list
23
23
  @scribe = Scribe.new("#{scribe_server}:#{scribe_port}")
@@ -29,7 +29,7 @@ module RubyZipkin extend self
29
29
  def call(env)
30
30
  begin
31
31
  ::Trace.default_endpoint = ::Trace.default_endpoint.with_service_name(@service_name + "_#{normalized_uri(env['PATH_INFO'])}")
32
- ::Trace.sample_rate = 0.1
32
+ ::Trace.sample_rate = 1
33
33
  env[ZipkinTraceHeader::PARENT_SPAN_ID] = @spanid
34
34
  env[ZipkinTraceHeader::TRACE_ID] = @tid
35
35
 
@@ -51,7 +51,7 @@ module RubyZipkin extend self
51
51
  return
52
52
  end
53
53
  @lock.synchronize do
54
- puts "zipkin trace id #{trace_id}"
54
+ Rails.logger.warn "zipkin trace id #{trace_id}"
55
55
  ::Trace.push(trace_id)
56
56
 
57
57
  set_trace_caption(env)
@@ -1,3 +1,3 @@
1
1
  module RubyZipkin
2
- VERSION = "0.2.901"
2
+ VERSION = "0.2.902"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-zipkin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1821
4
+ hash: 1819
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 901
10
- version: 0.2.901
9
+ - 902
10
+ version: 0.2.902
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ivan Marcin