atatus 1.4.0 → 1.5.0

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: 651694b5c78acd1f1582c30f1b28715b6a653c2b125a75613a19b7ae86361d9b
4
- data.tar.gz: 4a8e5ee631f32b09942bb6ae53a72531c4e7ffe2677194ee7f19f81dfd4c9eeb
3
+ metadata.gz: 8f1224097b7365777c25187cfc37e91183820049468b600c440a267e56eedab3
4
+ data.tar.gz: bfa687f00c9fc260b2b1c2530f98221feb145097ea950327dd50ed28d3c93f49
5
5
  SHA512:
6
- metadata.gz: 0400c2f1f8bdd57366d49d5a05f8d4dc49bc804e5dc263cfe9771043a021a47c08d7544af1adb9408a2c517c7839d20e6e7bb48329038e684c35a61bbf0db210
7
- data.tar.gz: 76eb02d1bf4cebf184ff8df44f71d553f64fe9e9dfb75aeb4c3e214a97a3dbc6efc7797a34321f019a0fc15be06800ef575efae6dc580aa1061037aeb1c13f4d
6
+ metadata.gz: c534a65922f5a3b4a82965af2eeeabd2b1f6d634cad3857054a2c4ae517a7fcda79bd6d9664874c1bd411078d7e0adfc27eba1c4c523d24e5195299b42fefb81
7
+ data.tar.gz: '078b28a6a86fa7d96c726e14f8cd8a8892efad31d839b843d58c6fd1c7229b7d8df36a21eaaea550ba2dcdd14431165ee317d31d0bb0bf34539f25f320b7d200'
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
7
 
8
+ ## 1.5.0 (Thu, 27 May 2021)
9
+
10
+ - Fixed issue in status code conversion.
11
+
12
+
8
13
  ## 1.4.0 (Tue, 15 Sept 2020)
9
14
 
10
15
  - Added histogram support.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- All components of this product are Copyright (c) 2020 Atatus. All rights reserved.
1
+ All components of this product are Copyright (c) 2021 Atatus. All rights reserved.
2
2
 
3
3
  Except as otherwise expressly provided in this Agreement,
4
4
  End User shall not (and shall not permit any third party to):
@@ -270,7 +270,7 @@ module Atatus
270
270
  !txn.context.response.nil? &&
271
271
  !txn.context.response.status_code.nil?
272
272
  then
273
- status_code = txn.context.response.status_code
273
+ status_code = txn.context.response.status_code.to_i
274
274
 
275
275
  if status_code >= 400 && status_code != 404
276
276
  if !@error_metrics_agg.key?(txn.name)
@@ -195,7 +195,7 @@ module Atatus
195
195
 
196
196
  if !context.response.nil?
197
197
  if !context.response.status_code.nil?
198
- request[:statusCode] = context.response.status_code
198
+ request[:statusCode] = context.response.status_code.to_i
199
199
  end
200
200
  end
201
201
 
@@ -286,7 +286,7 @@ module Atatus
286
286
  entry[:dt] = {}
287
287
  entry[:dt][:url] = span.context.http.url
288
288
  entry[:dt][:method] = span.context.http.method if defined?(span.context.http.method) && !span.context.http.method.nil?
289
- entry[:dt][:status_code] = span.context.http.status_code if defined?(span.context.http.status_code) && !span.context.http.status_code.nil?
289
+ entry[:dt][:status_code] = span.context.http.status_code.to_s if defined?(span.context.http.status_code) && !span.context.http.status_code.nil?
290
290
  end
291
291
  trace[:entries] << entry
292
292
  func_index = trace[:funcs].index(span.name)
@@ -409,7 +409,7 @@ module Atatus
409
409
  frame = {}
410
410
  frame[:f] = f.filename
411
411
  frame[:m] = f.function
412
- frame[:ln] = f.lineno
412
+ frame[:ln] = f.lineno.to_i
413
413
  if f.library_frame == false
414
414
  frame[:inp] = true
415
415
  end
@@ -19,5 +19,5 @@
19
19
 
20
20
  module Atatus
21
21
  AGENT_NAME = 'Ruby'
22
- VERSION = '1.4.0'
22
+ VERSION = '1.5.0'
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atatus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Atatus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-15 00:00:00.000000000 Z
11
+ date: 2021-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby