bc-lightstep-ruby 1.6.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -31
- data/bc-lightstep-ruby.gemspec +10 -2
- data/lib/bigcommerce/lightstep/configuration.rb +4 -1
- data/lib/bigcommerce/lightstep/transport.rb +4 -1
- data/lib/bigcommerce/lightstep/version.rb +1 -1
- metadata +91 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df74d5a5fd2cc148fb41c803f12eac56c610e36e2b1a952b722f54c13201a208
|
4
|
+
data.tar.gz: 49b0fed7a13a6c1e28e693e0a83d1e5ed36fdfc7a70547e06ef9909687bb5bff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d3803058a964cd7ff1a7ef892de004372175bfcefdb425dfe6764881b079e9ff802d21b55fca5278a59ace21d8c99951a79f80967fa23d45cac59d4c45797b1
|
7
|
+
data.tar.gz: 1ce46c68f3f0ca5adfe8e380a6c2ad802fd985d685709ba58755db47906a4bb96290b0f5cd25dbb67d3087035f8160e63945868ac68f2ce33a88d11bd3b91b86
|
data/CHANGELOG.md
CHANGED
@@ -1,137 +1,142 @@
|
|
1
1
|
Changelog for the bc-lightstep-ruby gem.
|
2
2
|
|
3
|
-
|
3
|
+
### Pending Release
|
4
4
|
|
5
|
-
|
5
|
+
### 2.0.0
|
6
|
+
|
7
|
+
- Drop support for Ruby < 2.6
|
8
|
+
- Set default log level to INFO when no logger is provided
|
9
|
+
|
10
|
+
### 1.6.4
|
6
11
|
|
7
12
|
- Add `nomad.node.id` and `nomad.node.name` span tags via ENV mappings
|
8
13
|
|
9
|
-
|
14
|
+
### 1.6.3
|
10
15
|
|
11
16
|
- Add service.version to tags
|
12
17
|
|
13
|
-
|
18
|
+
### 1.6.2
|
14
19
|
|
15
20
|
- Add span.kind tags to boundary spans
|
16
21
|
|
17
|
-
|
22
|
+
### 1.6.1
|
18
23
|
|
19
24
|
- Add interception context for thread-safe interception per trace
|
20
25
|
- Fix issue when there are no interceptors configured
|
21
26
|
- Fix issue where there is more than one interceptor configured
|
22
27
|
- Only pass env tags if root span for service
|
23
28
|
|
24
|
-
|
29
|
+
### 1.6.0
|
25
30
|
|
26
31
|
- Allow for instantiation of interceptors at initialization time
|
27
32
|
- Pre-build tag values for ENV interceptor at initialization to reduce CPU usage per-span
|
28
33
|
|
29
|
-
|
34
|
+
### 1.5.2
|
30
35
|
|
31
36
|
- Add rspec helper for testing custom lightstep spans
|
32
37
|
|
33
|
-
|
38
|
+
### 1.5.1
|
34
39
|
|
35
40
|
- Add `hostname` preset for env var injection into spans
|
36
41
|
|
37
|
-
|
42
|
+
### 1.5.0
|
38
43
|
|
39
44
|
- Add interceptors that allow for global injection of tags into spans
|
40
45
|
|
41
|
-
|
46
|
+
### 1.4.0
|
42
47
|
|
43
48
|
- Add `frozen_string_literal: true` to all files
|
44
49
|
- Deprecate ruby 2.2 support
|
45
50
|
|
46
|
-
|
51
|
+
### 1.3.3
|
47
52
|
|
48
53
|
- Updates gemspec to allow for newer Faraday versions
|
49
54
|
|
50
|
-
|
55
|
+
### 1.3.2
|
51
56
|
|
52
57
|
- Fix compatibility issues with resque-scheduler and redis instrumentation
|
53
58
|
|
54
|
-
|
59
|
+
### 1.3.1
|
55
60
|
|
56
61
|
- Add various options to suppress redis trace spam
|
57
62
|
- Fix issue with pipeline commands in redis instrumentation
|
58
63
|
|
59
|
-
|
64
|
+
### 1.3.0
|
60
65
|
|
61
66
|
- Adds automatic Redis instrumentation support
|
62
67
|
|
63
|
-
|
68
|
+
### 1.2.2
|
64
69
|
|
65
70
|
- Allow for usage of blank access tokens, which can be used with disabled token checking + project-specific satellites
|
66
71
|
|
67
|
-
|
72
|
+
### 1.2.1
|
68
73
|
|
69
74
|
- Fix issue where in Rails controllers before the action occurs that an uninitialized reporter would cause a
|
70
75
|
NoMethodError to occur (this most commonly occurs in test suites)
|
71
76
|
|
72
|
-
|
77
|
+
### 1.2.0
|
73
78
|
|
74
79
|
- Bump lightstep gem to 0.13
|
75
80
|
- Add LIGHTSTEP_MAX_BUFFERED_SPANS config ENV + setting for maximum number of spans to buffer
|
76
81
|
- Add LIGHTSTEP_MAX_LOG_RECORDS config ENV + setting for maximum number of log records that can be on a span
|
77
82
|
- Add LIGHTSTEP_MAX_REPORTING_INTERVAL_SECONDS config ENV + setting for max reporting flush interval to collector
|
78
83
|
|
79
|
-
|
84
|
+
### 1.1.8
|
80
85
|
|
81
86
|
- Handle issue that occurs if lightstep is disabled but the start_span method is still called
|
82
87
|
- Remove FORMAT_TEXT_MAP reference as this is no longer present in later lightstep gem versions
|
83
88
|
|
84
|
-
|
89
|
+
### 1.1.7
|
85
90
|
|
86
91
|
- Better handling of exceptions and tagged errors
|
87
92
|
- Lower timeouts for collector connections to reduce impact if collector is down/unreachable
|
88
93
|
- Always ensure spans are reported even in the case of exceptional failure
|
89
94
|
|
90
|
-
|
95
|
+
### 1.1.6
|
91
96
|
|
92
97
|
- First OSS release
|
93
98
|
|
94
|
-
|
99
|
+
### 1.1.5
|
95
100
|
|
96
101
|
- Pin lightstep gem to 0.11.x due to backwards-incompatible change in 0.12.x
|
97
102
|
|
98
|
-
|
103
|
+
### 1.1.4
|
99
104
|
|
100
105
|
- Add enabled setting to explicitly disable lightstep at runtime. Can be toggled with LIGHTSTEP_ENABLED ENV var.
|
101
106
|
|
102
|
-
|
107
|
+
### 1.1.3
|
103
108
|
|
104
109
|
- Have http1 errors only flag as error if they are 500+ status codes
|
105
110
|
|
106
|
-
|
111
|
+
### 1.1.2
|
107
112
|
|
108
113
|
- Prevent span from starting if the reporter is not yet configured, as LightStep gem does not guard this case
|
109
114
|
|
110
|
-
|
115
|
+
### 1.1.1
|
111
116
|
|
112
117
|
- Fix issues where Rack/Rails is prepending HTTP_ to headers, ensure right key format into carrier
|
113
118
|
|
114
|
-
|
119
|
+
### 1.1.0
|
115
120
|
|
116
121
|
- Add Faraday middleware for automatic tracing of outbound service calls
|
117
122
|
|
118
|
-
|
123
|
+
### 1.0.5
|
119
124
|
|
120
125
|
- Do not send GET params in rails controller instrumentation for http.url tag
|
121
126
|
|
122
|
-
|
127
|
+
### 1.0.4
|
123
128
|
|
124
129
|
- Rename span tags to fit the BigCommerce standardized tags
|
125
130
|
- Handle 500 errors in H1 requests properly
|
126
131
|
|
127
|
-
|
132
|
+
### 1.0.3
|
128
133
|
|
129
134
|
- Fix bug where active parent span was persisting between requests in rails controller requests
|
130
135
|
|
131
|
-
|
136
|
+
### 1.0.2
|
132
137
|
|
133
138
|
- Add Bigcommerce::Lightstep::Rails::ControllerInstrumentation module for tracing H1 controllers in Rails
|
134
139
|
|
135
|
-
|
140
|
+
### 1.0.0
|
136
141
|
|
137
142
|
- Initial public release
|
data/bc-lightstep-ruby.gemspec
CHANGED
@@ -31,11 +31,19 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
spec.files = Dir['README.md', 'CHANGELOG.md', 'CODE_OF_CONDUCT.md', 'lib/**/*', 'bc-lightstep-ruby.gemspec']
|
33
33
|
spec.require_paths = ['lib']
|
34
|
+
spec.required_ruby_version = '>= 2.6'
|
34
35
|
|
35
36
|
spec.add_development_dependency 'bundler', '~> 1.11'
|
37
|
+
spec.add_development_dependency 'bundler-audit', '~> 0.6'
|
36
38
|
spec.add_development_dependency 'rake', '~> 10.0'
|
37
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
38
|
-
spec.add_development_dependency '
|
39
|
+
spec.add_development_dependency 'rspec', '~> 3.8'
|
40
|
+
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4'
|
41
|
+
spec.add_development_dependency 'rubocop', '~> 0.79'
|
42
|
+
spec.add_development_dependency 'simplecov', '~> 0.15'
|
43
|
+
spec.add_development_dependency 'pry', '>= 0.12'
|
44
|
+
|
45
|
+
spec.add_development_dependency 'null-logger', '~> 0.1'
|
46
|
+
spec.add_development_dependency 'redis', '~> 4'
|
39
47
|
|
40
48
|
spec.add_runtime_dependency 'lightstep', '~> 0.13.0'
|
41
49
|
spec.add_runtime_dependency 'faraday', ['>= 0.8', '<= 0.15.4']
|
@@ -104,8 +104,11 @@ module Bigcommerce
|
|
104
104
|
self.max_log_records = ENV.fetch('LIGHTSTEP_MAX_LOG_RECORDS', 1_000).to_i
|
105
105
|
self.max_reporting_interval_seconds = ENV.fetch('LIGHTSTEP_MAX_REPORTING_INTERVAL_SECONDS', 3.0).to_f
|
106
106
|
|
107
|
+
default_logger = ::Logger.new(STDOUT)
|
108
|
+
default_logger.level = ::Logger::INFO
|
109
|
+
self.logger = defined?(Rails) ? Rails.logger : default_logger
|
107
110
|
self.verbosity = ENV.fetch('LIGHTSTEP_VERBOSITY', 1).to_i
|
108
|
-
|
111
|
+
|
109
112
|
self.enabled = ENV.fetch('LIGHTSTEP_ENABLED', 1).to_i.positive?
|
110
113
|
self.interceptors = ::Bigcommerce::Lightstep::Interceptors::Registry.new
|
111
114
|
end
|
@@ -65,7 +65,10 @@ module Bigcommerce
|
|
65
65
|
@continue_timeout = continue_timeout
|
66
66
|
@keep_alive_timeout = keep_alive_timeout.to_i
|
67
67
|
@access_token = access_token.to_s
|
68
|
-
|
68
|
+
|
69
|
+
default_logger = ::Logger.new(STDOUT)
|
70
|
+
default_logger.level = ::Logger::INFO
|
71
|
+
@logger = logger || default_logger
|
69
72
|
end
|
70
73
|
|
71
74
|
##
|
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:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun McCormick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler-audit
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.6'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.6'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rake
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,28 +58,98 @@ dependencies:
|
|
44
58
|
requirements:
|
45
59
|
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
61
|
+
version: '3.8'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.8'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec_junit_formatter
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.4'
|
48
76
|
type: :development
|
49
77
|
prerelease: false
|
50
78
|
version_requirements: !ruby/object:Gem::Requirement
|
51
79
|
requirements:
|
52
80
|
- - "~>"
|
53
81
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
82
|
+
version: '0.4'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.79'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.79'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.15'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.15'
|
55
111
|
- !ruby/object:Gem::Dependency
|
56
112
|
name: pry
|
57
113
|
requirement: !ruby/object:Gem::Requirement
|
58
114
|
requirements:
|
59
115
|
- - ">="
|
60
116
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
117
|
+
version: '0.12'
|
62
118
|
type: :development
|
63
119
|
prerelease: false
|
64
120
|
version_requirements: !ruby/object:Gem::Requirement
|
65
121
|
requirements:
|
66
122
|
- - ">="
|
67
123
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
124
|
+
version: '0.12'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: null-logger
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.1'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.1'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: redis
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '4'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '4'
|
69
153
|
- !ruby/object:Gem::Dependency
|
70
154
|
name: lightstep
|
71
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,7 +223,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
139
223
|
requirements:
|
140
224
|
- - ">="
|
141
225
|
- !ruby/object:Gem::Version
|
142
|
-
version: '
|
226
|
+
version: '2.6'
|
143
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
228
|
requirements:
|
145
229
|
- - ">="
|