sentry-opentelemetry 5.19.0 → 5.20.1
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: 2196c943569eec50e7a9504fb6cdaa378b6d8aef8f7acbc60f3d8b6575a7880f
|
4
|
+
data.tar.gz: a8ebb06f09369e29c23b219f565f3073a2b041ac81979a4f3d532da529a88ee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b413f76b7d4cd0f60e88c3630a8830ed22688cced0666673ce80970084f6c2c0efc0584cf7a376b66ab6d24e1e6326d87add686990da7dae3b3a883f52864447
|
7
|
+
data.tar.gz: b05655ee59f0f06ca56b45b92fea150543c38a92136eb863e7d458f5efa7d00c2f1a8c0dc78aa0fef01df4d6e19a3d0d31f1b4964d2b5726fe1e61bf6b5a66de
|
@@ -5,8 +5,8 @@ module Sentry
|
|
5
5
|
class Propagator
|
6
6
|
FIELDS = [SENTRY_TRACE_HEADER_NAME, BAGGAGE_HEADER_NAME].freeze
|
7
7
|
|
8
|
-
SENTRY_TRACE_KEY = ::OpenTelemetry::Context.create_key(
|
9
|
-
SENTRY_BAGGAGE_KEY = ::OpenTelemetry::Context.create_key(
|
8
|
+
SENTRY_TRACE_KEY = ::OpenTelemetry::Context.create_key("sentry-trace")
|
9
|
+
SENTRY_BAGGAGE_KEY = ::OpenTelemetry::Context.create_key("sentry-baggage")
|
10
10
|
|
11
11
|
def inject(
|
12
12
|
carrier,
|
@@ -41,8 +41,8 @@ module Sentry
|
|
41
41
|
trace_id, span_id, _parent_sampled = sentry_trace_data
|
42
42
|
|
43
43
|
span_context = ::OpenTelemetry::Trace::SpanContext.new(
|
44
|
-
trace_id: [trace_id].pack(
|
45
|
-
span_id: [span_id].pack(
|
44
|
+
trace_id: [trace_id].pack("H*"),
|
45
|
+
span_id: [span_id].pack("H*"),
|
46
46
|
# we simulate a sampled trace on the otel side and leave the sampling to sentry
|
47
47
|
trace_flags: ::OpenTelemetry::Trace::TraceFlags::SAMPLED,
|
48
48
|
remote: true
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "singleton"
|
4
4
|
|
5
5
|
module Sentry
|
6
6
|
module OpenTelemetry
|
@@ -151,14 +151,14 @@ module Sentry
|
|
151
151
|
if (http_status_code = otel_span.attributes[SEMANTIC_CONVENTIONS::HTTP_STATUS_CODE])
|
152
152
|
sentry_span.set_http_status(http_status_code)
|
153
153
|
elsif (status_code = otel_span.status.code)
|
154
|
-
status = [0, 1].include?(status_code) ?
|
154
|
+
status = [0, 1].include?(status_code) ? "ok" : "unknown_error"
|
155
155
|
sentry_span.set_status(status)
|
156
156
|
end
|
157
157
|
end
|
158
158
|
|
159
159
|
def update_span_with_otel_data(sentry_span, otel_span)
|
160
160
|
update_span_status(sentry_span, otel_span)
|
161
|
-
sentry_span.set_data(
|
161
|
+
sentry_span.set_data("otel.kind", otel_span.kind)
|
162
162
|
otel_span.attributes&.each { |k, v| sentry_span.set_data(k, v) }
|
163
163
|
|
164
164
|
op, description = parse_span_description(otel_span)
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.platform = Gem::Platform::RUBY
|
14
14
|
spec.required_ruby_version = '>= 2.4'
|
15
15
|
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
|
16
|
-
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples)'`.split("\n")
|
16
|
+
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples|\.rubocop\.yml)'`.split("\n")
|
17
17
|
|
18
18
|
github_root_uri = 'https://github.com/getsentry/sentry-ruby'
|
19
19
|
spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"
|
@@ -30,6 +30,6 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
|
-
spec.add_dependency "sentry-ruby", "~> 5.
|
33
|
+
spec.add_dependency "sentry-ruby", "~> 5.20.1"
|
34
34
|
spec.add_dependency "opentelemetry-sdk", "~> 1.0"
|
35
35
|
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.20.1
|
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-09-27 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.20.1
|
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.20.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: opentelemetry-sdk
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,15 +60,15 @@ files:
|
|
60
60
|
- lib/sentry/opentelemetry/span_processor.rb
|
61
61
|
- lib/sentry/opentelemetry/version.rb
|
62
62
|
- sentry-opentelemetry.gemspec
|
63
|
-
homepage: https://github.com/getsentry/sentry-ruby/tree/5.
|
63
|
+
homepage: https://github.com/getsentry/sentry-ruby/tree/5.20.1/sentry-opentelemetry
|
64
64
|
licenses:
|
65
65
|
- MIT
|
66
66
|
metadata:
|
67
|
-
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.
|
68
|
-
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.
|
69
|
-
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.
|
67
|
+
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.1/sentry-opentelemetry
|
68
|
+
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.1/sentry-opentelemetry
|
69
|
+
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.20.1/CHANGELOG.md
|
70
70
|
bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
|
71
|
-
documentation_uri: http://www.rubydoc.info/gems/sentry-opentelemetry/5.
|
71
|
+
documentation_uri: http://www.rubydoc.info/gems/sentry-opentelemetry/5.20.1
|
72
72
|
post_install_message:
|
73
73
|
rdoc_options: []
|
74
74
|
require_paths:
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
rubygems_version: 3.5.
|
87
|
+
rubygems_version: 3.5.16
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: A gem that provides OpenTelemetry integration for the Sentry error logger
|