bc-lightstep-ruby 1.2.1 → 1.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01adfce9c900a72b914b16516ebd293b3a9c129af2ce16d5e446732b692e4dec
4
- data.tar.gz: a51513f0c6fd22baf7f65f43953fcb35662756479da2619a35aca07b9b5c8ffd
3
+ metadata.gz: bb51f610607ad4b815b647c6fa8f09dcd5125e6c27f33462ee2d91a25ba9c28f
4
+ data.tar.gz: 34319a63089a907ddd8c15c55442965b42ab1c905f623c5531b8f541a8851685
5
5
  SHA512:
6
- metadata.gz: 2124c1befd96a48d4deb1a75fcc7352d4f237b12ca9fb223b35b220a36163657cac1411520cad1155827fcb6582781aace73f658c15abd82276696dc9c5c6c4c
7
- data.tar.gz: a2f523e1830a80b31de0bf79fe6f47f71e8d458c7519d0269ac517b16e323db89f5045f136a46895c2280ac0d56983f397912a83b80efe622f3c2f3f57147292
6
+ metadata.gz: 3ad475e7bf94c4c4d8de3328ea3944c7ccde4a2d1554f630c5d1410453646b2571dec5e2877ba673e99c764786d61efb5cb09ad4fec843e61182b795e3eddc97
7
+ data.tar.gz: a5ca0c2fc284a898cb92b29c8bef18f0a237c5b305713b55d4ccf42a4fca0c164e17ceb403be716ce2e399045af5313144026b90f224c4f72305b5f7981ee7a4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@ Changelog for the bc-lightstep-ruby gem.
2
2
 
3
3
  h3. Pending Release
4
4
 
5
+
6
+
7
+ h3. 1.2.2
8
+
9
+ - Allow for usage of blank access tokens, which can be used with disabled token checking + project-specific satellites
10
+
5
11
  h3. 1.2.1
6
12
 
7
13
  - Fix issue where in Rails controllers before the action occurs that an uninitialized reporter would cause a
data/README.md CHANGED
@@ -42,7 +42,7 @@ bc-lightstep-ruby can be automatically configured from these ENV vars, if you'd
42
42
  | ---- | ----------- |
43
43
  | LIGHTSTEP_ENABLED | Flag to determine whether to broadcast spans. Defaults to (1) enabled, 0 will disable.| 1 |
44
44
  | LIGHTSTEP_COMPONENT_NAME | The component name to use | '' |
45
- | LIGHTSTEP_ACCESS_TOKEN | The access token to use to connect to the collector | '' |
45
+ | LIGHTSTEP_ACCESS_TOKEN | The access token to use to connect to the collector. Optional. | '' |
46
46
  | LIGHTSTEP_HOST | Host of the collector. | `lightstep-collector.linkerd` |
47
47
  | LIGHTSTEP_PORT | Port of the collector. | `4140` |
48
48
  | LIGHTSTEP_SSL_VERIFY_PEER | If using 443 as the port, toggle SSL verification. | true |
@@ -62,11 +62,6 @@ module Bigcommerce
62
62
  @read_timeout = read_timeout.to_i
63
63
  @continue_timeout = continue_timeout
64
64
  @keep_alive_timeout = keep_alive_timeout.to_i
65
-
66
- raise ::Bigcommerce::Lightstep::Errors::InvalidAccessToken, 'access_token must be a string' unless access_token.is_a?(String)
67
-
68
- raise ::Bigcommerce::Lightstep::Errors::InvalidAccessToken, 'access_token cannot be blank' if access_token.empty?
69
-
70
65
  @access_token = access_token.to_s
71
66
  @logger = logger || ::Logger.new(STDOUT)
72
67
  end
@@ -96,7 +91,7 @@ module Bigcommerce
96
91
  #
97
92
  def build_request(report)
98
93
  req = Net::HTTP::Post.new(REPORTS_API_ENDPOINT)
99
- req[HEADER_ACCESS_TOKEN] = @access_token
94
+ req[HEADER_ACCESS_TOKEN] = @access_token unless @access_token.to_s.empty?
100
95
  req['Content-Type'] = 'application/json'
101
96
  req['Connection'] = 'keep-alive'
102
97
  req.body = report.to_json
@@ -15,6 +15,6 @@
15
15
  #
16
16
  module Bigcommerce
17
17
  module Lightstep
18
- VERSION = '1.2.1'.freeze
18
+ VERSION = '1.2.2'.freeze
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bc-lightstep-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-05 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler