sentry-opentelemetry 5.16.0 → 5.17.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: 56113b7a727685e5e16573f25a2cc83f174f8a307b769d345bf00555f0bdcbe1
4
- data.tar.gz: 74d39597dde8646fff5b5d64a01757cbcfed2da81cc0c89bc873d9ed7981a869
3
+ metadata.gz: 29a7ef37b5db46083f4e247d4e8597153cbbda74dcefa0816f4f6e23ced23320
4
+ data.tar.gz: 0fbad6c833a7c233b96af52382b6945cee6932758317f791392c408b20878c03
5
5
  SHA512:
6
- metadata.gz: fecf30a486d9142426d1a6a25fd9540e8f91660516f1e6ce03670a57a8c94f9ba277a80091bd7e29c93012901bc41dccd6af4fd6c706c26a9507a7b9d5a15b54
7
- data.tar.gz: 8351bbf54a7814d578ac804d724c47d642d4d16ac19f4d04c7ee8494df1cc984793b164c0eb967f7ccd11b5910da5954db447fc903145858c8eb335a0ccd9671
6
+ metadata.gz: 006fe36b080d462f6d41c060f5f87fff076db642038d823ef4d48c6c94690d3d79aceca9d2f9c7098ba588e6738e0de9148631955f69fd301642e907b4eea273
7
+ data.tar.gz: df967b4893e35185df3f9c4ccbcb6244ed936d74eea9f44b886953c91f3cfdca583b9a98e126c8e029e74e5e738a14c74387fe9d7d436b4f9ddab4b68a010620
data/Rakefile CHANGED
@@ -5,4 +5,4 @@ RSpec::Core::RakeTask.new(:spec).tap do |task|
5
5
  task.rspec_opts = "--order rand"
6
6
  end
7
7
 
8
- task :default => :spec
8
+ task default: :spec
@@ -3,7 +3,6 @@
3
3
  module Sentry
4
4
  module OpenTelemetry
5
5
  class Propagator
6
-
7
6
  FIELDS = [SENTRY_TRACE_HEADER_NAME, BAGGAGE_HEADER_NAME].freeze
8
7
 
9
8
  SENTRY_TRACE_KEY = ::OpenTelemetry::Context.create_key('sentry-trace')
@@ -51,14 +50,15 @@ module Sentry
51
50
 
52
51
  baggage_header = getter.get(carrier, BAGGAGE_HEADER_NAME)
53
52
 
54
- baggage = if baggage_header && !baggage_header.empty?
55
- Baggage.from_incoming_header(baggage_header)
56
- else
57
- # If there's an incoming sentry-trace but no incoming baggage header,
58
- # for instance in traces coming from older SDKs,
59
- # baggage will be empty and frozen and won't be populated as head SDK.
60
- Baggage.new({})
61
- end
53
+ baggage =
54
+ if baggage_header && !baggage_header.empty?
55
+ Baggage.from_incoming_header(baggage_header)
56
+ else
57
+ # If there's an incoming sentry-trace but no incoming baggage header,
58
+ # for instance in traces coming from older SDKs,
59
+ # baggage will be empty and frozen and won't be populated as head SDK.
60
+ Baggage.new({})
61
+ end
62
62
 
63
63
  baggage.freeze!
64
64
  context = context.set_value(SENTRY_BAGGAGE_KEY, baggage)
@@ -10,7 +10,7 @@ module Sentry
10
10
  include Singleton
11
11
 
12
12
  SEMANTIC_CONVENTIONS = ::OpenTelemetry::SemanticConventions::Trace
13
- INTERNAL_SPAN_KINDS = %i(client internal)
13
+ INTERNAL_SPAN_KINDS = %i[client internal]
14
14
 
15
15
  # The mapping from otel span ids to sentry spans
16
16
  # @return [Hash]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sentry
4
4
  module OpenTelemetry
5
- VERSION = "5.16.0"
5
+ VERSION = "5.17.0"
6
6
  end
7
7
  end
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ["lib"]
26
26
 
27
- spec.add_dependency "sentry-ruby", "~> 5.16.0"
27
+ spec.add_dependency "sentry-ruby", "~> 5.17.0"
28
28
  spec.add_dependency "opentelemetry-sdk", "~> 1.0"
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-opentelemetry
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.16.0
4
+ version: 5.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sentry Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-08 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sentry-ruby
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.16.0
19
+ version: 5.17.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 5.16.0
26
+ version: 5.17.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: opentelemetry-sdk
29
29
  requirement: !ruby/object:Gem::Requirement