bc-lightstep-ruby 2.6.0 → 2.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5690f617aac90d828163b980e6315bcf21a5f4c2e81d46c660e275f8e51df20
4
- data.tar.gz: a89ce02ec2b20b0d716e63f5ac3c3251a7c437063e91a8a4ab729c512108375d
3
+ metadata.gz: 601c8290786658777472d7b16c8012b8758c4dcc2e4853cf5cdc3bf205133d50
4
+ data.tar.gz: 3f37e614a404c05d1677dff48f322b60e3cdbb4c4aba9d14b7da6f88e4b453a0
5
5
  SHA512:
6
- metadata.gz: 4beeba6a2d87513ac111a48319988f8a8c46542eb326b1ad179fa87802eb8d9a90ee1694e1ff676a33490ce7e9a4a962bbd6e5066589d8eaf98c7ae03cd256e1
7
- data.tar.gz: 8695c5d8d79085eba12d1e1796990ac88f755826369cdce32283205f01580515f06a0ab164b629eb27646039a0794d987be60cee76c4f08361b485a1e9f2089d
6
+ metadata.gz: fb660259c8196c8b053e0170bd6a86e09e0447151dd5e95188f5469456efeac647f05169d07bcd58cae5f6daa082c908db20f9d5dcb58b5fe8be725f2f91f1d2
7
+ data.tar.gz: ac9b91ec6d91becbd2fc564914f10db4d649b34f67558c9d77559e8f160531b399572abb8d4063c2b96128834133388c07a413f3d802e0537f637d2294815f3e
data/CHANGELOG.md CHANGED
@@ -2,12 +2,16 @@ Changelog for the bc-lightstep-ruby gem.
2
2
 
3
3
  ### Pending Release
4
4
 
5
+ ### 2.6.1
6
+
7
+ * Supports hook for controllers to specify additional span tags
8
+
5
9
  ### 2.6.0
6
10
 
7
11
  * Add support for Rails/ActiveRecord 7
8
12
  * Add test coverage for Ruby 3.2
9
13
 
10
- ### 2.5.x
14
+ ### 2.5.0
11
15
 
12
16
  * Drop support for Ruby 2
13
17
  * Remove unused NullLogger dev dependency
@@ -30,6 +30,10 @@ module Bigcommerce
30
30
  span.set_tag('http.content_type', request.format)
31
31
  span.set_tag('http.host', request.host)
32
32
  span.set_tag('span.kind', 'server')
33
+
34
+ # provide a hook for controllers to provide additional span tags
35
+ lightstep_additional_span_tags.each { |tag_name, value| span.set_tag(tag_name.to_s, value.to_s) }
36
+
33
37
  begin
34
38
  resp = yield
35
39
  rescue StandardError => _e
@@ -48,6 +52,15 @@ module Bigcommerce
48
52
  result
49
53
  end
50
54
 
55
+ ##
56
+ # Get list of additional span tags
57
+ #
58
+ # @return [Hash]
59
+ #
60
+ def lightstep_additional_span_tags
61
+ {}
62
+ end
63
+
51
64
  ##
52
65
  # Get only the open tracing headers
53
66
  #
@@ -17,6 +17,6 @@
17
17
  #
18
18
  module Bigcommerce
19
19
  module Lightstep
20
- VERSION = '2.6.0'
20
+ VERSION = '2.6.1'
21
21
  end
22
22
  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: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun McCormick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-07 00:00:00.000000000 Z
11
+ date: 2023-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  - !ruby/object:Gem::Version
263
263
  version: '0'
264
264
  requirements: []
265
- rubygems_version: 3.4.1
265
+ rubygems_version: 3.4.20
266
266
  signing_key:
267
267
  specification_version: 4
268
268
  summary: Gem for lightstep distributed tracing