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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f40c0fcc33d8c65ea67ae0189bf3a28b93c47e13
4
- data.tar.gz: a40d752854a1b4cf06ebbae167870b7ea39528d2
3
+ metadata.gz: da00cfe2151c45f8636aa05501e89a32aafb2472
4
+ data.tar.gz: 5f2874679114e53b7a640d1012603b079384dacd
5
5
  SHA512:
6
- metadata.gz: ce760ee14733c3eb7289884f96c7321548014dc62367ac9a75981a551d88130e86f3aa53e7c5d37eaeb67a968df047b11c19ee4491a1285fae4b162dddc4db77
7
- data.tar.gz: 956ed6ebdeef84f7a6f574bc2f7860c030e891410ace5579e7c00d470b1336daec24e817b4c8598c60502fbdd476f4ef6095f9ae78981b7e204b55c29177891b
6
+ metadata.gz: d85e1f564c594a50f51cb9542efaa47cd2e7f6aca71e41c4d82336b0b86bcc7b08897f504f244f1696c5931ac681cc0522744444660ce74f6337b322a76a5f2d
7
+ data.tar.gz: d968501a49bea1bc4d7e4d3774584097a1831cc62b60b2df4e430f7c9759104bdd3339e5588f4add822dca28e3f71b3845e4a78f6efa3ff5a46167e216a12b31
@@ -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
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "logasm-tracer"
7
- spec.version = "0.2.3"
7
+ spec.version = "0.3.0"
8
8
  spec.authors = ["SaleMove TechMovers"]
9
9
  spec.email = ["techmovers@salemove.com"]
10
10
 
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.2.3
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: 2017-04-21 00:00:00.000000000 Z
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.8
96
+ rubygems_version: 2.6.11
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: ''