spanmanager 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/spanmanager/tracer.rb +5 -0
- data/lib/spanmanager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 544e566965e5648114699cec60cd6762db1b2059
|
4
|
+
data.tar.gz: '09bca4b26125ee4b27a09ac242ef13cbae845bcd'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 262accaafc49fc756f1a1614b5a6099e93bf0648f1e1c82ea593e8ddae91af3d8a9d2d9fea20530fb3dce5608e6b993bfb725a1fb024b9a657db9966593d42b0
|
7
|
+
data.tar.gz: 124932aeb06fc967cef198cd17ab0d800e3ac0bf3fa70d8ae2f552415dedef52b70667bf33b86510d85c25cadc009ebd639785e0f0eec5661a852ee3fc4026a1
|
data/README.md
CHANGED
@@ -54,6 +54,10 @@ It's a wrapper that forwards all calls to another `OpenTracing::Tracer` implemen
|
|
54
54
|
Spans which you will create through this tracer will be automatically activated when started, and
|
55
55
|
deactivated when they finish.
|
56
56
|
|
57
|
+
Provides the following additional methods:
|
58
|
+
|
59
|
+
1. `wrapped` returns the wrapped tracer.
|
60
|
+
|
57
61
|
## Usage
|
58
62
|
|
59
63
|
```ruby
|
data/lib/spanmanager/tracer.rb
CHANGED
@@ -18,6 +18,11 @@ module SpanManager
|
|
18
18
|
@managed_span_source = managed_span_source
|
19
19
|
end
|
20
20
|
|
21
|
+
# @return [OpenTracing::Tracer] the wrapped tracer
|
22
|
+
def wrapped
|
23
|
+
@tracer
|
24
|
+
end
|
25
|
+
|
21
26
|
# Retrieves the current active span.
|
22
27
|
#
|
23
28
|
# @return [SpanManager::ManagedSpan] returns the current active span, or null if none could be found.
|
data/lib/spanmanager/version.rb
CHANGED