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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76cb4b1d14f9d68ab3bf329963f3a61b1df0962266bf20440fc882b3bc03dfc7
|
4
|
+
data.tar.gz: 9eac30d4d73bade94970786bd8eedd9c1e530b1c026f96d37a30f61d2dea26d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c15ad22b47fb73056fbb5445bb9bd578b5f67afd3472c97bbcbf3ce44b923d25460ecb1e8e9bd738fc113d7aaece1273322eecaaea8daed9dc2b07d0908c671
|
7
|
+
data.tar.gz: fa2d528cc8f882cb5ec06595e5ee7c46227cf7ff554c8d0c5613d0de78c682ad19e3d56382a6e8e450a0410dd6c7ef33ca286cd37b892bc5cb9d17a16bc38067
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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
|