tracing-matchers 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/lib/tracing/matchers/span/be_child_of.rb +3 -1
- data/lib/tracing/matchers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b267634453368b953b1c360b97c757a78dea84b
|
4
|
+
data.tar.gz: 3ca899031fbfa05514868c595911074e3d9fc556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ec28d560afdac35daf3eeabcd2a59410af45d967a88b6d615ec1ee00d7a7b05f98f4a613cc3d3e1c95f9fb7cab676fe5aa869998148a7884fe9759d664c51b8
|
7
|
+
data.tar.gz: 45c633fa61aa88201de235a5469384015cd249a51c6b88c4ca8ed967606a68bbcd532a0d0ae7313428acd7c5309797997135212df4058def6ff689471b1d34cd
|
data/.travis.yml
CHANGED
@@ -67,7 +67,9 @@ module Tracing
|
|
67
67
|
case
|
68
68
|
when @expected.respond_to?(:context) then @expected.context.span_id
|
69
69
|
when @expected.respond_to?(:span_id) then @expected.span_id
|
70
|
-
when @expected.is_a?(String)
|
70
|
+
when @expected.is_a?(String)
|
71
|
+
span = @tracer.spans.find { |span| span.operation_name == @expected }
|
72
|
+
span.context.span_id if span && span.context && span.context.span_id
|
71
73
|
else @expected
|
72
74
|
end
|
73
75
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tracing-matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iaintshine
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-tracer
|