semlogr-faraday 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -6
- data/README.md +1 -1
- data/lib/semlogr/faraday/request_correlator.rb +4 -1
- data/lib/semlogr/faraday/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 94444d6e8e9fcd9c52b1cc55125c3a7b7c74cb65baba9f07c78eab5f981349e9
|
|
4
|
+
data.tar.gz: 4aa377d9196cf7e31e0deb40b24123e60433536e264191cde913ca38a85fb8eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 507e70634183805aa5e336e02dd2b7e9c0cba986470343bb2ac0f291104465bf3fd799ced74921f0930cf84767d623220ce1478da0bc2439f3e30f727b60f889
|
|
7
|
+
data.tar.gz: 7ca33234db48e52dee1178d0c179d9bd74e6dc8f2136e7a65e4dff513f6185b9ffc5109e44aad35f912f94240573a95cf3d847934058f0f897a610463752aba3
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
-
-
|
|
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
|
|
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'
|
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.
|
|
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-
|
|
11
|
+
date: 2018-08-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|