helios-opentelemetry-sdk 0.1.15 → 0.1.16

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: 11a4d057dafe06241ebe7042f68f2675fa052e653cb325df1ed7df27e609d603
4
- data.tar.gz: 8b4b103be5da44eb1944a2211c58af5a85397c2acc1f3c20c554663979bde68b
3
+ metadata.gz: 76cb4b1d14f9d68ab3bf329963f3a61b1df0962266bf20440fc882b3bc03dfc7
4
+ data.tar.gz: 9eac30d4d73bade94970786bd8eedd9c1e530b1c026f96d37a30f61d2dea26d6
5
5
  SHA512:
6
- metadata.gz: 39f09188ae59c71fe5779d7af3d84221cf3fa439372fbc71128e2668a4cb21e3b285846004965601d21d9b273edef9a7c4c7106e70eaed6091decabf617b868f
7
- data.tar.gz: 4001559c175453f4a13742233b698aa96fa03948f29f5aa0b1530e28e85e6c4056cb808f5c6199bfef7232a09d0e0f22006589aa1688908bfd7ae960b1463bb8
6
+ metadata.gz: 5c15ad22b47fb73056fbb5445bb9bd578b5f67afd3472c97bbcbf3ce44b923d25460ecb1e8e9bd738fc113d7aaece1273322eecaaea8daed9dc2b07d0908c671
7
+ data.tar.gz: fa2d528cc8f882cb5ec06595e5ee7c46227cf7ff554c8d0c5613d0de78c682ad19e3d56382a6e8e450a0410dd6c7ef33ca286cd37b892bc5cb9d17a16bc38067
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- helios-opentelemetry-sdk (0.1.15)
4
+ helios-opentelemetry-sdk (0.1.16)
5
5
  opentelemetry-exporter-otlp (~> 0.22.0)
6
6
  opentelemetry-instrumentation-all (~> 0.25.0)
7
7
  opentelemetry-instrumentation-rspec (~> 0.2.0)
@@ -19,7 +19,10 @@ module RackPatch
19
19
  def set_attributes_after_request(span, status, headers, response)
20
20
  semantic_attributes = Helios::OpenTelemetry::SemanticAttributes
21
21
  span.set_attribute(semantic_attributes::HTTP_RESPONSE_HEADERS, headers.to_json)
22
- span.set_attribute(semantic_attributes::HTTP_RESPONSE_BODY, response[0]) if response&.first&.length&.positive?
22
+ if response.respond_to?(:first) && response.first&.length&.positive?
23
+ span.set_attribute(semantic_attributes::HTTP_RESPONSE_BODY, response.first)
24
+ end
25
+
23
26
  super(span, status, headers, response)
24
27
  end
25
28
  end
@@ -1,7 +1,7 @@
1
1
  module Helios
2
2
  module OpenTelemetry
3
3
  module SDK
4
- VERSION = '0.1.15'
4
+ VERSION = '0.1.16'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helios-opentelemetry-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Helios