logasm-tracer 0.2.3 → 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/lib/logasm/tracer/span.rb +9 -0
- data/logasm-tracer.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da00cfe2151c45f8636aa05501e89a32aafb2472
|
4
|
+
data.tar.gz: 5f2874679114e53b7a640d1012603b079384dacd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d85e1f564c594a50f51cb9542efaa47cd2e7f6aca71e41c4d82336b0b86bcc7b08897f504f244f1696c5931ac681cc0522744444660ce74f6337b322a76a5f2d
|
7
|
+
data.tar.gz: d968501a49bea1bc4d7e4d3774584097a1831cc62b60b2df4e430f7c9759104bdd3339e5588f4add822dca28e3f71b3845e4a78f6efa3ff5a46167e216a12b31
|
data/lib/logasm/tracer/span.rb
CHANGED
@@ -50,6 +50,15 @@ class Logasm
|
|
50
50
|
@logger.info "Span [#{@operation_name}] #{event}", trace_information.merge(fields)
|
51
51
|
end
|
52
52
|
|
53
|
+
# Add a log entry to this span
|
54
|
+
#
|
55
|
+
# @param timestamp [Time] time of the log
|
56
|
+
# @param fields [Hash] Additional information to log
|
57
|
+
def log_kv(timestamp: Time.now, **fields)
|
58
|
+
event = fields.fetch(:event, 'unknown')
|
59
|
+
@logger.info "Span [#{@operation_name}] #{event}", trace_information.merge(fields)
|
60
|
+
end
|
61
|
+
|
53
62
|
# Finish the {Span}
|
54
63
|
#
|
55
64
|
# @param end_time [Time] custom end time, if not now
|
data/logasm-tracer.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logasm-tracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SaleMove TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.6.
|
96
|
+
rubygems_version: 2.6.11
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: ''
|