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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 848bd1089194abb9be8a48b6c1c4c218dfba27a3555d8ae79a5ffe7d52a05569
4
- data.tar.gz: c52711ba4c4275d35cc4ed54a0dc0936422a63e199de91c08e3e6964fb80d6d6
3
+ metadata.gz: 2f6a137330d349e7d0cfa5535bdf80f940266df9e01b4f134df6a49c475724fa
4
+ data.tar.gz: 27d2fd1c95d69dc1cf6b01a2ca6c9c6e58fcaf2cba2a76706b6a26fe323f4599
5
5
  SHA512:
6
- metadata.gz: fb55681acc83a4c970fbf8dd7c6715fbef7b6d26ad0a4ca674bc463de13881887d33dd8673772e60e25c2c66b6cb1f111a6c23936b1683d74384296924bb2b33
7
- data.tar.gz: 598c1571d00ca441b3a351dfe12c56967d3dae8e4f05b4a8f21b3e8fe16d0c94558e8dec5d211ff72aced12d5b433fb0f7f5f1b6ed522206d15847087dafd959
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 = 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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sentry
4
- VERSION = "5.0.1"
4
+ VERSION = "5.0.2"
5
5
  end
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.1
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-23 00:00:00.000000000 Z
11
+ date: 2022-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby