sentry-ruby 6.4.0 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfac2bf746b0bc0a28b2fea926bc176fd7cfc6e33dc65f11666725c2cd20350a
4
- data.tar.gz: 51132c054f3d252e41457b2386dccaf1552ccfed4d504164b70b44b1c6202f4b
3
+ metadata.gz: 98ee25c5aaeb49754f4d101eff2633c74f00b3b01236e7c012c1b7bb5898e276
4
+ data.tar.gz: a463f19fe5fe50719398470b2926509ebd5708cb7702948207d164846c873a29
5
5
  SHA512:
6
- metadata.gz: b73179ba5cd0ee572d076d22a7790660b3ec78046b02d0924e1489e7fdf3aa38babbabcdd3037f1aba7f67e74cc31412cdcc9edd22d86bf747ba40eaeca517db
7
- data.tar.gz: edcb0e412d362495836836d39db3753e7bc612968efe9bd036fefdaeb966d8f25541703c2b570c04679c223e421662cef20964d3958a23f471ee6e1794baf376
6
+ metadata.gz: 0d108cff7d2da68566f330f02706c31bf70ca22291e5dd8575dfb1fcc76b073e14a22d2f18a814346ca38bc51cb1868ac328989de5d7b7c8bf1eab5d3a5d85b0
7
+ data.tar.gz: 9e6975759fb9a06307ab201f7377822f5fa4d4f407eacb656371f083cce2ff65ba98c0b4cc418f81e608d0e8e78449ee9c53e3c26e6706a3b8b4bfe8e77c37d2
@@ -73,13 +73,15 @@ module Sentry
73
73
 
74
74
  transaction = Sentry.continue_trace(env, **options)
75
75
  transaction = Sentry.start_transaction(transaction: transaction, custom_sampling_context: { env: env }, **options)
76
+ attach_queue_time(transaction, env)
77
+ transaction
78
+ end
76
79
 
77
- # attach queue time if available
78
- if transaction && (queue_time = extract_queue_time(env))
79
- transaction.set_data(Span::DataConventions::HTTP_QUEUE_TIME_MS, queue_time)
80
- end
80
+ def attach_queue_time(transaction, env)
81
+ return unless transaction
82
+ return unless (queue_time = extract_queue_time(env))
81
83
 
82
- transaction
84
+ transaction.set_data(Span::DataConventions::HTTP_QUEUE_TIME_MS, queue_time)
83
85
  end
84
86
 
85
87
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sentry
4
- VERSION = "6.4.0"
4
+ VERSION = "6.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.0
4
+ version: 6.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
@@ -169,15 +169,15 @@ files:
169
169
  - lib/sentry/version.rb
170
170
  - sentry-ruby-core.gemspec
171
171
  - sentry-ruby.gemspec
172
- homepage: https://github.com/getsentry/sentry-ruby/tree/6.4.0/sentry-ruby
172
+ homepage: https://github.com/getsentry/sentry-ruby/tree/6.4.1/sentry-ruby
173
173
  licenses:
174
174
  - MIT
175
175
  metadata:
176
- homepage_uri: https://github.com/getsentry/sentry-ruby/tree/6.4.0/sentry-ruby
177
- source_code_uri: https://github.com/getsentry/sentry-ruby/tree/6.4.0/sentry-ruby
178
- changelog_uri: https://github.com/getsentry/sentry-ruby/blob/6.4.0/CHANGELOG.md
176
+ homepage_uri: https://github.com/getsentry/sentry-ruby/tree/6.4.1/sentry-ruby
177
+ source_code_uri: https://github.com/getsentry/sentry-ruby/tree/6.4.1/sentry-ruby
178
+ changelog_uri: https://github.com/getsentry/sentry-ruby/blob/6.4.1/CHANGELOG.md
179
179
  bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
180
- documentation_uri: http://www.rubydoc.info/gems/sentry-ruby/6.4.0
180
+ documentation_uri: http://www.rubydoc.info/gems/sentry-ruby/6.4.1
181
181
  rdoc_options: []
182
182
  require_paths:
183
183
  - lib