signalfx_test_tracer 0.1.3 → 0.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
  SHA256:
3
- metadata.gz: 726075edac221f65c1cba02bca053c71d2ea19c34b6116bd1f9e87cf062fe128
4
- data.tar.gz: 05e78501ab3c46b8e7ed65eb6c79956d0c9490efc1a56878cfebe43dfbce3f74
3
+ metadata.gz: c615f02e403f45bc599c380078d94c09c9fc9e9a9f4d55fd20aea050b8b5052b
4
+ data.tar.gz: 643ead1003097deaf0e1da2f4529c542fb76900c34d24b0234fb9fa8a3985094
5
5
  SHA512:
6
- metadata.gz: 8fa52ee5201f7e1415b398a608499fd6e47d2c770018673e98b8666dbfce5377ceafd95781fb16c1cb666ecadda014f59738ac38c549de18ff899a3172a32a6c
7
- data.tar.gz: 6325229728f9cc2cd9c3f25fbfbfc4de12e402618b43721c72983b659e9c8738c4caa7a4dccdfa06008781ee86e00754b21a9fac5a8b82956ccc21747917874a
6
+ metadata.gz: a6f94ba7ba86f23c8138b5bf0da6a698a742affeedeca00a5bb16a35bae83dd543eb76edb69ab43aa4f7535d4a057317905de0d7e325855611b0d17c2b4e29e1
7
+ data.tar.gz: d006287f87ae86467651ff8868303137f96f3999c28fefffd999cdd1b0e95f8ebe99f6e1efe95f938cd56ad850d58446b8a0174fb0fcb9cef37caab8e4e42237
@@ -73,7 +73,8 @@ class OpenTracingTestTracer
73
73
  operation_name: operation_name,
74
74
  start_time: start_time,
75
75
  references: references,
76
- tags: tags
76
+ tags: tags,
77
+ tracer: self,
77
78
  )
78
79
  @spans << span
79
80
  span
@@ -119,7 +120,7 @@ class OpenTracingTestTracer
119
120
  references: references,
120
121
  start_time: start_time,
121
122
  tags: tags,
122
- ignore_active_scope: ignore_active_scope
123
+ ignore_active_scope: ignore_active_scope,
123
124
  )
124
125
  scope = @scope_manager.activate(span, finish_on_close: finish_on_close)
125
126
 
@@ -12,7 +12,8 @@ class OpenTracingTestTracer
12
12
  operation_name:,
13
13
  start_time: Time.now,
14
14
  tags: {},
15
- references: nil
15
+ references: nil,
16
+ tracer: nil
16
17
  )
17
18
  @context = context
18
19
  @operation_name = operation_name
@@ -20,6 +21,11 @@ class OpenTracingTestTracer
20
21
  @tags = tags
21
22
  @logs = []
22
23
  @references = references
24
+ @tracer = tracer
25
+ end
26
+
27
+ def tracer
28
+ @tracer
23
29
  end
24
30
 
25
31
  # Set a tag value on this span
@@ -16,11 +16,12 @@ class OpenTracingTestTracer
16
16
  )
17
17
  end
18
18
 
19
- attr_reader :span_id, :parent_id, :trace_id, :baggage
19
+ attr_reader :span_id, :parent_id, :parent_span_id, :trace_id, :baggage
20
20
 
21
21
  def initialize(span_id:, parent_id: nil, trace_id:, baggage: {})
22
22
  @span_id = span_id
23
23
  @parent_id = parent_id
24
+ @parent_span_id = parent_id
24
25
  @trace_id = trace_id
25
26
  @baggage = baggage
26
27
  end
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'signalfx_test_tracer'
8
- spec.version = '0.1.3'
8
+ spec.version = '0.1.4'
9
9
  spec.authors = ['SignalFx Engineers']
10
10
  spec.email = ['eng@signalfx.com']
11
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signalfx_test_tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - SignalFx Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-20 00:00:00.000000000 Z
11
+ date: 2020-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler