bc-lightstep-ruby 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2b20374a58de581ce773fa99fb7638be8b1bcc850838a982267c84c9e382a35
4
- data.tar.gz: 4c142c796b5be6d4613e22241a20358caf0f9d21d7d80600e1a8909e2011fb55
3
+ metadata.gz: 01adfce9c900a72b914b16516ebd293b3a9c129af2ce16d5e446732b692e4dec
4
+ data.tar.gz: a51513f0c6fd22baf7f65f43953fcb35662756479da2619a35aca07b9b5c8ffd
5
5
  SHA512:
6
- metadata.gz: 9ebdd12a9a51e45ec80cd21c44b94b8798c3bb5b6fd14c968da7daf80bb2e91f50979e71ac9e5cacb750047b92027804328144f0e274998d066c18b266cf59ff
7
- data.tar.gz: 2cb510ec6d18e4046b73c1aec3abbc73b4675b06cd791591c0b3be1c899258a9c41518ffba92af72f7858ed1de19f9a7e499ebaef799f11a664bdeb3730424a4
6
+ metadata.gz: 2124c1befd96a48d4deb1a75fcc7352d4f237b12ca9fb223b35b220a36163657cac1411520cad1155827fcb6582781aace73f658c15abd82276696dc9c5c6c4c
7
+ data.tar.gz: a2f523e1830a80b31de0bf79fe6f47f71e8d458c7519d0269ac517b16e323db89f5045f136a46895c2280ac0d56983f397912a83b80efe622f3c2f3f57147292
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@ Changelog for the bc-lightstep-ruby gem.
2
2
 
3
3
  h3. Pending Release
4
4
 
5
+ h3. 1.2.1
6
+
7
+ - Fix issue where in Rails controllers before the action occurs that an uninitialized reporter would cause a
8
+ NoMethodError to occur (this most commonly occurs in test suites)
9
+
5
10
  h3. 1.2.0
6
11
 
7
12
  - Bump lightstep gem to 0.13
@@ -76,8 +76,8 @@ module Bigcommerce
76
76
  def inject_ot_tags!(request_env, span)
77
77
  request_env[:request_headers].merge!(
78
78
  OT_TAG_TRACE_ID => span.context.trace_id.to_s,
79
- OT_TAG_SPAN_ID => span.context.id.to_s,
80
- OT_TAG_SAMPLED => 'true'
79
+ OT_TAG_SPAN_ID => span.context.id.to_s,
80
+ OT_TAG_SAMPLED => 'true'
81
81
  )
82
82
  end
83
83
 
@@ -33,7 +33,7 @@ module Bigcommerce
33
33
  span.set_tag('error', true)
34
34
  span.set_tag('http.status_code', Bigcommerce::Lightstep.http1_error_code)
35
35
  tracer.clear_active_span!
36
- span.finish
36
+ span.finish if tracer.reporter_initialized? # only finish the span if we're actually reporting
37
37
  raise # re-raise the error
38
38
  end
39
39
  span.set_tag('http.status_code', response.status)
@@ -15,6 +15,6 @@
15
15
  #
16
16
  module Bigcommerce
17
17
  module Lightstep
18
- VERSION = '1.2.0'.freeze
18
+ VERSION = '1.2.1'.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.0
4
+ version: 1.2.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: 2018-10-24 00:00:00.000000000 Z
11
+ date: 2019-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -133,8 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  requirements: []
136
- rubyforge_project:
137
- rubygems_version: 2.7.7
136
+ rubygems_version: 3.0.2
138
137
  signing_key:
139
138
  specification_version: 4
140
139
  summary: Gem for lightstep distributed tracing