sentry-ruby-core 5.0.1 → 5.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sentry/client.rb +1 -0
- data/lib/sentry/transport/http_transport.rb +3 -6
- data/lib/sentry/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f6a137330d349e7d0cfa5535bdf80f940266df9e01b4f134df6a49c475724fa
|
4
|
+
data.tar.gz: 27d2fd1c95d69dc1cf6b01a2ca6c9c6e58fcaf2cba2a76706b6a26fe323f4599
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6f8a78bd9bdb89ca6f710a036e1e4917891968e1de929da024dbebc12a5d86642a51e367b329b6a1c9f6c670af47d5bad0a8fd15804c3511f33edd5333ae789
|
7
|
+
data.tar.gz: '0559dd91dcdb831e132d5e74d0680cdedbb3e07c83b1f3129e635eb868bc8fb5a84e27813276058d436709543ec45f602f3f89ababec9295b1b0208292ee77c7'
|
data/lib/sentry/client.rb
CHANGED
@@ -108,6 +108,7 @@ module Sentry
|
|
108
108
|
event.contexts.merge!(trace: transaction.get_trace_context)
|
109
109
|
event.timestamp = transaction.timestamp
|
110
110
|
event.start_timestamp = transaction.start_timestamp
|
111
|
+
event.tags = transaction.tags
|
111
112
|
|
112
113
|
finished_spans = transaction.span_recorder.spans.select { |span| span.timestamp && span != transaction }
|
113
114
|
event.spans = finished_spans.map(&:to_hash)
|
@@ -129,17 +129,14 @@ module Sentry
|
|
129
129
|
def conn
|
130
130
|
server = URI(@dsn.server)
|
131
131
|
|
132
|
-
use_ssl = server.scheme == "https"
|
133
|
-
port = use_ssl ? 443 : 80
|
134
|
-
|
135
132
|
connection =
|
136
133
|
if proxy = @transport_configuration.proxy
|
137
|
-
::Net::HTTP.new(server.hostname, port, proxy[:uri].hostname, proxy[:uri].port, proxy[:user], proxy[:password])
|
134
|
+
::Net::HTTP.new(server.hostname, server.port, proxy[:uri].hostname, proxy[:uri].port, proxy[:user], proxy[:password])
|
138
135
|
else
|
139
|
-
::Net::HTTP.new(server.hostname, port, nil)
|
136
|
+
::Net::HTTP.new(server.hostname, server.port, nil)
|
140
137
|
end
|
141
138
|
|
142
|
-
connection.use_ssl =
|
139
|
+
connection.use_ssl = server.scheme == "https"
|
143
140
|
connection.read_timeout = @transport_configuration.timeout
|
144
141
|
connection.write_timeout = @transport_configuration.timeout if connection.respond_to?(:write_timeout)
|
145
142
|
connection.open_timeout = @transport_configuration.open_timeout
|
data/lib/sentry/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-ruby-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sentry Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|