sqreen-kit 0.2.2 → 0.2.3

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: 51abfaf2080f671c2a6835f5ed95994c38dfb0a57920db3eb7125ad2f10d652a
4
- data.tar.gz: f629c23d6f1ac354938076ade36539795b4a10f5807891a9276d522c5190414c
3
+ metadata.gz: f8cbb82a739997ab9d4faa9689df9d3854ddb32a45361b4a572f2e13b4104dfa
4
+ data.tar.gz: 456792fc273fce1cd31c9b4d8d60f94321ac8315dd968cd992ffb1c42607c9d1
5
5
  SHA512:
6
- metadata.gz: ee7a92c40bcca1826d41c4d5ffe31f626dcf3c184741c400923432cc04c0c5ad95c824f22b98827e1ab49a0be13adeaa77fcc6f0bdc942438acc0bb3c4607b89
7
- data.tar.gz: 9cfe256765ee91a5bbaf5c2d4fcc5d7eb29a55812c2074f12eb30b4e8547cf7a7521f1cd53e04121b754864ee434c30b1a5f1eca5c6c77968b7eab4ebf937056
6
+ metadata.gz: cd0f3f2a07777f0996eee497e87c4a843fb20d1b8d9cab255383b89d489c067ed83442ea77ccd12f5d463073b9b7ab4200e84067bbef21abdf04773773a41187
7
+ data.tar.gz: 4e8b6b71afc3e951de917e4a712f2fdabb0f70f627d7253c6e87e07bbe29efab839cf4e6a23de125ce752fb3856c8314adf4b2a636588c824c95d10776dd7506
@@ -107,6 +107,14 @@ class Sqreen::Kit::Signals::Context::HttpContext
107
107
  # @return [String]
108
108
  attr_accessor :content_type
109
109
 
110
+ # Datadog trace id
111
+ # @return [Integer]
112
+ attr_accessor :datadog_trace_id
113
+
114
+ # Datadog span id
115
+ # @return [Integer]
116
+ attr_accessor :datadog_span_id
117
+
110
118
  def to_h
111
119
  check_mandatories
112
120
 
@@ -139,6 +147,9 @@ class Sqreen::Kit::Signals::Context::HttpContext
139
147
  content_type: content_type,
140
148
  content_length: content_length,
141
149
  }),
142
- }
150
+ }.merge!(compact_hash(
151
+ datadog_trace_id: datadog_trace_id,
152
+ datadog_span_id: datadog_span_id,
153
+ ))
143
154
  end
144
155
  end
@@ -60,6 +60,14 @@ module Sqreen
60
60
  # @param [Exception] e
61
61
  attr_writer :exception
62
62
 
63
+ # Datadog trace id
64
+ # @return [Integer]
65
+ attr_accessor :datadog_trace_id
66
+
67
+ # Datadog span id
68
+ # @return [Integer]
69
+ attr_accessor :datadog_span_id
70
+
63
71
  def stack_trace
64
72
  if @exception
65
73
  Sqreen::Kit::StackTrace.parse(@exception)
@@ -1,3 +1,5 @@
1
+ # typed: ignore
2
+
1
3
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
4
  # Please refer to our terms for more information: https://www.sqreen.com/terms.html
3
5
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqreen-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loic Nageleisen
8
8
  - Gustavo Lopes
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-07-30 00:00:00.000000000 Z
12
+ date: 2021-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqreen-backport
@@ -25,8 +25,8 @@ dependencies:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: 0.1.0
28
- description:
29
- email:
28
+ description:
29
+ email:
30
30
  executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
@@ -60,7 +60,7 @@ licenses:
60
60
  - Sqreen
61
61
  metadata:
62
62
  source_code_uri: https://github.com/sqreen/ruby-sdk
63
- post_install_message:
63
+ post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
66
66
  - lib
@@ -75,8 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.1.2
79
- signing_key:
78
+ rubygems_version: 3.2.3
79
+ signing_key:
80
80
  specification_version: 4
81
81
  summary: Sqreen development kit for Ruby
82
82
  test_files: []