redcord 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redcord/tracer.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3f218b4829ef5112feb7c61b40ddb8f745a12f7d714d591265e9903d669be23
|
4
|
+
data.tar.gz: b5bafa5a3b51d4bb2a94322ab2600b1bb09e8ef406500586976ebb049213a1ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a4e447a16debc8fcec99cc4500712e07a0efd8f7af0b826200c8fa00803f644d906f2679387a4e884bb048662f890b43bbe02883bf10688bff4eee6caa47d07
|
7
|
+
data.tar.gz: e9f5e5582a91f57e2cdaf710518f34d43da3275ac753564d4fc12c94a45e3590d64a4d96e32ef1a45a66e80b062aaa25b08a86d9d0fdfc58f4144eea9f98d065
|
data/lib/redcord/tracer.rb
CHANGED
@@ -22,11 +22,11 @@ module Redcord::Tracer
|
|
22
22
|
params(
|
23
23
|
span_name: String,
|
24
24
|
model_name: String,
|
25
|
-
tags: T::
|
25
|
+
tags: T::Hash[String, String],
|
26
26
|
blk: T.proc.returns(T.untyped),
|
27
27
|
).returns(T.untyped)
|
28
28
|
}
|
29
|
-
def trace(span_name, model_name:, tags:
|
29
|
+
def trace(span_name, model_name:, tags: {}, &blk)
|
30
30
|
return blk.call if @@tracer.nil?
|
31
31
|
|
32
32
|
@@tracer.call.trace(
|