libhoney 1.14.1 → 1.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/libhoney/log_transmission.rb +6 -1
- data/lib/libhoney/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: 3f927781fd9eabe1295401e3c82ff1bac4397fc268161a0f50bbde9265e36043
|
4
|
+
data.tar.gz: 5de25f0498bdceedaf1d0f70d152d1f636cec859826bfa8415e1bdbfdb8cda7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 431121e46ae89a3362ede8612f56cf4c6bcbf034389e78751e5a24e39c95bcb2ea364a240c2251f0583363913403d94bc87738ace08c92e28de1f1e11861cdcb
|
7
|
+
data.tar.gz: d9d64648f34037c8904ae001c2967b6c7a81dad0c46fd7aef0ba95501cf284010b2a5ba2d88ce0dacf020b05929247927eea89c7e45ece216598758e142aaa97
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
libhoney (1.14.
|
4
|
+
libhoney (1.14.2)
|
5
5
|
addressable (~> 2.0)
|
6
6
|
http (>= 2.0, < 5.0)
|
7
7
|
|
@@ -17,7 +17,7 @@ GEM
|
|
17
17
|
safe_yaml (~> 1.0.0)
|
18
18
|
domain_name (0.5.20190701)
|
19
19
|
unf (>= 0.0.5, < 1.0.0)
|
20
|
-
ffi (1.11.
|
20
|
+
ffi (1.11.3)
|
21
21
|
ffi-compiler (1.0.1)
|
22
22
|
ffi (>= 1.0.0)
|
23
23
|
rake
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'json'
|
2
|
+
require 'libhoney/cleaner'
|
2
3
|
|
3
4
|
module Libhoney
|
4
5
|
# For debugging use: a mock version of TransmissionClient that simply prints
|
@@ -9,6 +10,8 @@ module Libhoney
|
|
9
10
|
# to verify what events your instrumented code is sending. Use in
|
10
11
|
# production is not recommended.
|
11
12
|
class LogTransmissionClient
|
13
|
+
include Cleaner
|
14
|
+
|
12
15
|
def initialize(output:, verbose: false)
|
13
16
|
@output = output
|
14
17
|
@verbose = verbose
|
@@ -21,7 +24,9 @@ module Libhoney
|
|
21
24
|
metadata << " (sample rate: #{event.sample_rate})" if event.sample_rate != 1
|
22
25
|
@output.print("#{metadata} | ")
|
23
26
|
end
|
24
|
-
|
27
|
+
clean_data(event.data).tap do |data|
|
28
|
+
@output.puts(data.to_json)
|
29
|
+
end
|
25
30
|
end
|
26
31
|
|
27
32
|
# Flushes the output (but does not close it)
|
data/lib/libhoney/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libhoney
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Honeycomb.io Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bump
|