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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c615f02e403f45bc599c380078d94c09c9fc9e9a9f4d55fd20aea050b8b5052b
|
4
|
+
data.tar.gz: 643ead1003097deaf0e1da2f4529c542fb76900c34d24b0234fb9fa8a3985094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6f94ba7ba86f23c8138b5bf0da6a698a742affeedeca00a5bb16a35bae83dd543eb76edb69ab43aa4f7535d4a057317905de0d7e325855611b0d17c2b4e29e1
|
7
|
+
data.tar.gz: d006287f87ae86467651ff8868303137f96f3999c28fefffd999cdd1b0e95f8ebe99f6e1efe95f938cd56ad850d58446b8a0174fb0fcb9cef37caab8e4e42237
|
data/lib/signalfx_test_tracer.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2020-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|