opentracing 0.4.1 → 0.4.2

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
  SHA256:
3
- metadata.gz: 3eaff2ab1720da385117e24693462359bfef951b98076388e1470c8f14c74a56
4
- data.tar.gz: 8bbd4f385a60fe2410ce783869c29f247540494706248dd8cd5e21ffc0e877f3
3
+ metadata.gz: 57af69a0f85571155d987da6ace51d7731a5e7af104db681da0c98c929eba751
4
+ data.tar.gz: f5f501bd1237859354f735697ae441c3a2b84f8f86f83a99b72cd0fcec489902
5
5
  SHA512:
6
- metadata.gz: 9b8a05a7b37af43b7ad6b46389ed06a136789b9425f9d5d51f0b9be11e47cbde1a34637e70ed33df035a59b22e68468ad4820fc4648181e227730865cf418dcc
7
- data.tar.gz: 442bda2ab2ed359ae226ae0147b595e6972775e64f41e20521edfddd5c1fbdab2d8c4eb21137fe723962cffd73c164e18334f3edf12c928b264410d83d343c95
6
+ metadata.gz: 3a20fc28d36b4b0719c7f5bcc08fff9e6c2f13f9feb270d2bf2c798ed08189bc1c19f1c1d6ed44121f12a4c188b08da6ceaa187264f0f1cc44cc6ec285a2d98c
7
+ data.tar.gz: 30664b966210b15ddd83c0c860d3def5c1f224ac832145a02eaffe190a4631d26b3c18cb4fee9a188a2dc18c1f17592bceea4a7f978d5b4fd448c5640b043137
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## Master
3
+ ## 0.4.2
4
+
5
+ * Update opentracing.io links and scheme on README ([#38](https://github.com/opentracing/opentracing-ruby/pull/38))
6
+
7
+ * Add active_span method to Tracer ([#34](https://github.com/opentracing/opentracing-ruby/pull/34))
4
8
 
5
9
  ## 0.4.1
6
10
 
data/README.md CHANGED
@@ -7,8 +7,8 @@ This package is a Ruby platform API for OpenTracing.
7
7
  ## Required Reading
8
8
 
9
9
  In order to understand the Ruby platform API, one must first be familiar with the
10
- [OpenTracing project](http://opentracing.io) and
11
- [terminology](http://opentracing.io/documentation/pages/spec.html) more specifically.
10
+ [OpenTracing project](https://opentracing.io) and
11
+ [terminology](https://opentracing.io/docs/overview/) more specifically.
12
12
 
13
13
  ## Installation
14
14
 
@@ -195,4 +195,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/opentr
195
195
 
196
196
  ## Licensing
197
197
 
198
- [Apache 2.0 License](./LICENSE).
198
+ [Apache 2.0 License](./LICENSE).
@@ -37,16 +37,7 @@ module OpenTracing
37
37
  # Global tracer to be used when OpenTracing.start_span, inject or extract is called
38
38
  attr_accessor :global_tracer
39
39
  def_delegators :global_tracer, :scope_manager, :start_active_span,
40
- :start_span, :inject, :extract
41
-
42
- # Convenience method to access the currently active span. This is equivalent
43
- # to calling `OpenTracing.scope_manager.active.span`
44
- #
45
- # @return [Span, nil] the currently active span or nil
46
- def active_span
47
- scope = scope_manager.active
48
- scope.span if scope
49
- end
40
+ :start_span, :inject, :extract, :active_span
50
41
  end
51
42
  end
52
43
 
@@ -12,6 +12,14 @@ module OpenTracing
12
12
  ScopeManager::NOOP_INSTANCE
13
13
  end
14
14
 
15
+ # @return [Span, nil] the active span. This is a shorthand for
16
+ # `scope_manager.active.span`, and nil will be returned if
17
+ # Scope#active is nil.
18
+ def active_span
19
+ scope = scope_manager.active
20
+ scope.span if scope
21
+ end
22
+
15
23
  # Returns a newly started and activated Scope.
16
24
  #
17
25
  # If the Tracer's ScopeManager#active is not nil, no explicit references
@@ -1,3 +1,3 @@
1
1
  module OpenTracing
2
- VERSION = '0.4.1'.freeze
2
+ VERSION = '0.4.2'.freeze
3
3
  end
@@ -1,4 +1,3 @@
1
-
2
1
  lib = File.expand_path('lib', __dir__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'opentracing/version'
@@ -11,7 +10,7 @@ Gem::Specification.new do |spec|
11
10
 
12
11
  spec.summary = 'OpenTracing Ruby Platform API'
13
12
  spec.homepage = 'https://github.com/opentracing/opentracing-ruby'
14
- spec.license = 'Apache 2.0'
13
+ spec.license = 'Apache-2.0'
15
14
 
16
15
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
16
  f.match(%r{^(test|spec|features)/})
@@ -20,10 +19,10 @@ Gem::Specification.new do |spec|
20
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
20
  spec.require_paths = ['lib']
22
21
 
23
- spec.add_development_dependency 'bundler'
22
+ spec.add_development_dependency 'bundler', '~> 0'
24
23
  spec.add_development_dependency 'minitest', '~> 5.0'
25
24
  spec.add_development_dependency 'rake', '~> 10.0'
26
25
  spec.add_development_dependency 'rubocop', '~> 0.54.0'
27
- spec.add_development_dependency 'simplecov'
28
- spec.add_development_dependency 'simplecov-console'
26
+ spec.add_development_dependency 'simplecov', '~> 0'
27
+ spec.add_development_dependency 'simplecov-console', '~> 0'
29
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentracing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ngauthier
@@ -10,20 +10,20 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2018-04-27 00:00:00.000000000 Z
13
+ date: 2018-10-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ">="
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ">="
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
28
  version: '0'
29
29
  - !ruby/object:Gem::Dependency
@@ -72,28 +72,28 @@ dependencies:
72
72
  name: simplecov
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ">="
75
+ - - "~>"
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ">="
82
+ - - "~>"
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: simplecov-console
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - ">="
89
+ - - "~>"
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ">="
96
+ - - "~>"
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  description:
@@ -126,7 +126,7 @@ files:
126
126
  - opentracing.gemspec
127
127
  homepage: https://github.com/opentracing/opentracing-ruby
128
128
  licenses:
129
- - Apache 2.0
129
+ - Apache-2.0
130
130
  metadata: {}
131
131
  post_install_message:
132
132
  rdoc_options: []