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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29a7ef37b5db46083f4e247d4e8597153cbbda74dcefa0816f4f6e23ced23320
|
4
|
+
data.tar.gz: 0fbad6c833a7c233b96af52382b6945cee6932758317f791392c408b20878c03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 006fe36b080d462f6d41c060f5f87fff076db642038d823ef4d48c6c94690d3d79aceca9d2f9c7098ba588e6738e0de9148631955f69fd301642e907b4eea273
|
7
|
+
data.tar.gz: df967b4893e35185df3f9c4ccbcb6244ed936d74eea9f44b886953c91f3cfdca583b9a98e126c8e029e74e5e738a14c74387fe9d7d436b4f9ddab4b68a010620
|
data/Rakefile
CHANGED
@@ -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 =
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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
|
13
|
+
INTERNAL_SPAN_KINDS = %i[client internal]
|
14
14
|
|
15
15
|
# The mapping from otel span ids to sentry spans
|
16
16
|
# @return [Hash]
|
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
26
|
+
version: 5.17.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: opentelemetry-sdk
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|