traces 0.5.0 → 0.6.0

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: 284452f4bfc37587b942b74918b2807ad6c51ee09d5a93bd39d5eefa6ba66aa1
4
- data.tar.gz: 7f2d42000701312aeeb5015b19f888d5ed5acb4d4c79322e894b584292c0aed1
3
+ metadata.gz: f43a022f924d80549fb54edeb3624e67ff1bfbf682115a5a83ac721249b53806
4
+ data.tar.gz: a307c39fb5decf64d338c2c6f414744fbb4a7e6e523ba84182171d386e68f09a
5
5
  SHA512:
6
- metadata.gz: b32ad9f2018cce91b418907c052b6f9c8b63b2fad08ccdc4e1abcf3dd623e0209ad3bed87b5dfdf4138c20110e0e1806caec1a1b62bbd064b2699498822e7e24
7
- data.tar.gz: 41e7cd96fb1dcb21f727d2753854ba77c08378fee1ad459b9f696d2bdecc857841c7fda0f3cf2d3e3b03647bfbe6cd137a846cb1c6230a5cbcc1d149899ea031
6
+ metadata.gz: 2fcb2d979a672924a6167753e9e3e9b4e7d75be028d14b0a623458c7d0a5a656859648ec1a728195dbacedcfcd3817474a37ac3778556a5920c6ace5bb598f28
7
+ data.tar.gz: 7b4fb88b6ebda8d3ad9cddc5e6132c9e2b50d669eb69f827383aceb4902b32334cb7bd7ab227e51a873881e3e8f98dbae39cef147ac924a2dcc98e701908513e
checksums.yaml.gz.sig CHANGED
Binary file
@@ -74,13 +74,8 @@ module Traces
74
74
  end
75
75
 
76
76
  # Get a trace context from the current execution scope.
77
- # @parameter span [Span] An optional span from which to extract the context.
78
- def trace_context(span = nil)
79
- if span
80
- span.context
81
- else
82
- Fiber.current.traces_backend_context
83
- end
77
+ def trace_context
78
+ Fiber.current.traces_backend_context
84
79
  end
85
80
  end
86
81
  end
@@ -84,13 +84,8 @@ module Traces
84
84
  end
85
85
 
86
86
  # Get a trace context from the current execution scope.
87
- # @parameter span [Span] An optional span from which to extract the context.
88
- def trace_context(span = nil)
89
- if span
90
- span.context
91
- else
92
- Fiber.current.traces_backend_context
93
- end
87
+ def trace_context
88
+ Fiber.current.traces_backend_context
94
89
  end
95
90
  end
96
91
  end
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Traces
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.0"
25
25
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traces
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -36,7 +36,7 @@ cert_chain:
36
36
  RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
37
37
  HiLJ8VOFx6w=
38
38
  -----END CERTIFICATE-----
39
- date: 2022-01-27 00:00:00.000000000 Z
39
+ date: 2022-06-09 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.1.6
87
+ rubygems_version: 3.3.7
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Application instrumentation and tracing.
metadata.gz.sig CHANGED
Binary file