tracing-logger 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/tracing-logger.gemspec +2 -1
  4. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06f4c22e24b43a4027a8fdee6b9fdcb01a34a228
4
- data.tar.gz: 11e3c6060616889cf6da6251c3fa04074a14ede3
3
+ metadata.gz: cefeb5f418b5a12cfef9b6ce2079da817949b7a0
4
+ data.tar.gz: 76e252a2f6d6e9758b0522652f4e31ff8224926e
5
5
  SHA512:
6
- metadata.gz: b3d831097a2ad79f80577423cc807ab2dc4e7630606eebb4884103a86c2596677fb99bc50e4b478f10d242bc40f0d41f1fabe6f6e13a0156c67db04c8f4f975c
7
- data.tar.gz: a1fcafeb614d4d34c4de90ec7ac47dcbf7e799969563f9986f13b1e5bae410de25d6e6c5abf5af6da00b86476a7d24466930d0ca801e772df17a07258dd07c11
6
+ metadata.gz: f2b65f8689c0122c1927dddf291d799dbdf24e2be1105e055622ac606aac984bb21186292b2c144f1c3d6d8f96159af266d16f5a80e7fe728275bf460d39a03e
7
+ data.tar.gz: 65095921a47691e9c5c1f9edbfb13a5c6838c8e5f7bb06acb811fd9cd5f79df1e3e20ede4e18ff6aab37a13261957edbaf235de839dd406ab99679a70f163bec
data/README.md CHANGED
@@ -26,17 +26,17 @@ To initialize a new instance of `Tracing::Logger` you need to specify at least a
26
26
 
27
27
  ```ruby
28
28
  require 'spanmanager'
29
- require 'tracing-logger'
29
+ require 'tracing/logger'
30
30
 
31
31
  OpenTracing.global_tracer = SpanManager::Tracer.new(OpenTracing.global_tracer)
32
- logger = Tracing::Logger.new(active_span: -> { OpenTracing.global_tracer.active_span }, logger: Logger::ERROR)
32
+ logger = Tracing::Logger.new(active_span: -> { OpenTracing.global_tracer.active_span }, level: Logger::ERROR)
33
33
  logger.error("description of some exceptional event")
34
34
  ```
35
35
 
36
36
  The gem comes with `Tracing::CompositeLogger`. It allows to specify multiple destination loggers, each with different level and formatter. Might be very useful in cases where you want to write all the logs to a file, and only those exceptional to a tracer.
37
37
 
38
38
  ```ruby
39
- tracing_logger = Tracing::Logger.new(active_span: -> { OpenTracing.global_tracer.active_span }, logger: Logger::ERROR)
39
+ tracing_logger = Tracing::Logger.new(active_span: -> { OpenTracing.global_tracer.active_span }, level: Logger::ERROR)
40
40
  file_logger = Logger.new('log.txt')
41
41
  composite_logger = Tracing::CompositeLogger.new(tracing_logger, file_logger)
42
42
  composite_logger.error("description of some exceptional event") # => both destinations, tracing and file loggers, will be callled
@@ -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 = "tracing-logger"
7
- spec.version = "1.0.0"
7
+ spec.version = "1.0.1"
8
8
  spec.authors = ["iaintshine"]
9
9
  spec.email = ["bodziomista@gmail.com"]
10
10
 
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency 'opentracing', '~> 0.3.1'
26
26
 
27
27
  spec.add_development_dependency "test-tracer", "~> 1.0"
28
+ spec.add_development_dependency "tracing-matchers", "~> 1.0"
28
29
  spec.add_development_dependency "bundler", "~> 1.15"
29
30
  spec.add_development_dependency "rake", "~> 10.0"
30
31
  spec.add_development_dependency "rspec", "~> 3.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracing-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - iaintshine
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-14 00:00:00.000000000 Z
11
+ date: 2017-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentracing
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: tracing-matchers
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement