request-tracer 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/request_tracer/version.rb +1 -1
- data/lib/request_tracer.rb +6 -0
- data/spec/support/test_app.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTk3ZDIyZTNmZWEwMmQ3NTQ4MDRjZDg2NGE0NGI4MGM4NmQxZjI2Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTlmYWQwNmUzYTJjNGI1ZDRhYzJkZDcyYWNmNjU2YmVmZDczODA5Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWNhNzdiMWYwM2ZhYTBlNTA0Mzc0ZjM0YzA5YzcxODA2ZmFjNDhiMTNiMGU0
|
10
|
+
Nzg5YmNiZjY5ZmU0M2ZhZWE3NDNhNzBkOThkMjU0MWRkYWQyZjMwZGU2NTNm
|
11
|
+
YmU4NjZjOWU0YjQ1ODcxYmU0Y2MyNDU3NzZiYTYyNjk1MjllNDA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjljYTY0OTY5YWM1ZTYzN2QzNmZjMjYxMDJjZGNmYTI4NDBhNjVkMmE2ZWI4
|
14
|
+
MTZkZjA0Zjc2NDM1ZWVmMGE0ZDYxMDBkM2M4ZjIyMjViZmM4ZDcwZjQzZTcx
|
15
|
+
Y2JhMjZkOWRlYzYyNjNkYjU0MzIzNDczOThlNmI0NTRhY2Q4NzQ=
|
data/lib/request_tracer.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require_relative 'request_tracer/trace'
|
2
|
+
|
1
3
|
module RequestTracer
|
2
4
|
B3_REQUIRED_FIELDS = %w(trace_id parent_span_id span_id)
|
3
5
|
B3_REQUIRED_FIELDS_FROM_SHORT_NAMES = B3_REQUIRED_FIELDS.map {|f| [f.gsub("_", ""), f] }.to_h
|
@@ -14,4 +16,8 @@ module RequestTracer
|
|
14
16
|
integration_module.activate
|
15
17
|
end
|
16
18
|
end
|
19
|
+
|
20
|
+
def self.latest_trace_hash(*args)
|
21
|
+
Trace.latest.to_h
|
22
|
+
end
|
17
23
|
end
|
data/spec/support/test_app.rb
CHANGED