semlogr-faraday 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 49b7851150bc4dc0e64ddb2a2b790888a3d5705f15df1656dc6dd35cf28521db
4
- data.tar.gz: 07f786bd6eef15486aee52b3637a53ca8f078f1c8a62a127792e0176c16bc5ce
3
+ metadata.gz: 94444d6e8e9fcd9c52b1cc55125c3a7b7c74cb65baba9f07c78eab5f981349e9
4
+ data.tar.gz: 4aa377d9196cf7e31e0deb40b24123e60433536e264191cde913ca38a85fb8eb
5
5
  SHA512:
6
- metadata.gz: f694f3f36680d656b425bdb5dd41dc58e239ab2b8eaa1f89384347bb58daa08b6b8b503d9546e5c48c052a471be7c8751201ea8495df89ffe593367fe6f19569
7
- data.tar.gz: 889fc17386e499d8f8ecd6364a4a3556e2670b45cf7ae2df593475587d7e7d3ba56b57bc7c8e84a69b3076f57e59c94a72a0ceaf0adcdd4b1ec2d39bdbce2ef1
6
+ metadata.gz: 507e70634183805aa5e336e02dd2b7e9c0cba986470343bb2ac0f291104465bf3fd799ced74921f0930cf84767d623220ce1478da0bc2439f3e30f727b60f889
7
+ data.tar.gz: 7ca33234db48e52dee1178d0c179d9bd74e6dc8f2136e7a65e4dff513f6185b9ffc5109e44aad35f912f94240573a95cf3d847934058f0f897a610463752aba3
@@ -1,13 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ### 0.1.2
4
-
5
- - Change request logger to log only path without query string
6
-
7
3
  ### 0.1.1
8
4
 
9
- - Add support for filtering requests by path for the request logger
10
- - Add log correlator middleware which provides the ability to propogate a correlation id from a request header to the Semlogr ambient log context
5
+ - Fix middleware implementation to use Faraday base
11
6
 
12
7
  ### 0.1.0
13
8
 
data/README.md CHANGED
@@ -29,7 +29,7 @@ provide a full end to end proprogation of correlation ids between your services.
29
29
  ```ruby
30
30
  require 'semlogr/faraday'
31
31
 
32
- faraday = Faraday.new 'http://test.com' do |c|
32
+ faraday = Faraday.new('http://test.com') do |c|
33
33
  c.request :semlogr_request_correlator
34
34
 
35
35
  c.adapter Faraday.default_adapter
@@ -1,9 +1,12 @@
1
1
  require 'semlogr'
2
+ require 'faraday'
2
3
 
3
4
  module Semlogr
4
5
  module Faraday
5
- class RequestCorrelator
6
+ class RequestCorrelator < ::Faraday::Middleware
6
7
  def initialize(app, opts = {})
8
+ super(app)
9
+
7
10
  @app = app
8
11
  @id_property = opts[:id_property] || :correlation_id
9
12
  @id_header = opts[:id_header] || 'X-Correlation-Id'
@@ -1,5 +1,5 @@
1
1
  module Semlogr
2
2
  module Faraday
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.1.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semlogr-faraday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Sedich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-17 00:00:00.000000000 Z
11
+ date: 2018-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday