sentry-opentelemetry 5.19.0 → 5.20.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: e162b842d0f5a47d5a5330383fba1c460829d635fd7dd9e00201f43ab7cc95dd
|
4
|
+
data.tar.gz: 02f28d575cb875ecf033536c3273d7424e8f6bd20b3a642105cf295d5e315a67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 539d2f9750b8e43dde962ef210f63d1771edfdc5915c3671858d99082c08a60b61e5c1f0d96f2342f1eb7766b8a0095b09c2d74b804357fca698cff271ca8db1
|
7
|
+
data.tar.gz: f1aa06f6a9580544fa7154175197a3a67ff8a103e950681e46f0ceba5adfae0811b8bdcb942d12b29f71ef0bf80aedf775c776e60c6152887f503b35501b18a4
|
data/.rubocop.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
../.rubocop.yml
|
@@ -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)
|
@@ -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.0"
|
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.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-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.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.20.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: opentelemetry-sdk
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -48,6 +48,7 @@ extra_rdoc_files:
|
|
48
48
|
files:
|
49
49
|
- ".gitignore"
|
50
50
|
- ".rspec"
|
51
|
+
- ".rubocop.yml"
|
51
52
|
- Gemfile
|
52
53
|
- LICENSE.txt
|
53
54
|
- Makefile
|
@@ -60,15 +61,15 @@ files:
|
|
60
61
|
- lib/sentry/opentelemetry/span_processor.rb
|
61
62
|
- lib/sentry/opentelemetry/version.rb
|
62
63
|
- sentry-opentelemetry.gemspec
|
63
|
-
homepage: https://github.com/getsentry/sentry-ruby/tree/5.
|
64
|
+
homepage: https://github.com/getsentry/sentry-ruby/tree/5.20.0/sentry-opentelemetry
|
64
65
|
licenses:
|
65
66
|
- MIT
|
66
67
|
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.
|
68
|
+
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.0/sentry-opentelemetry
|
69
|
+
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.0/sentry-opentelemetry
|
70
|
+
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.20.0/CHANGELOG.md
|
70
71
|
bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
|
71
|
-
documentation_uri: http://www.rubydoc.info/gems/sentry-opentelemetry/5.
|
72
|
+
documentation_uri: http://www.rubydoc.info/gems/sentry-opentelemetry/5.20.0
|
72
73
|
post_install_message:
|
73
74
|
rdoc_options: []
|
74
75
|
require_paths:
|
@@ -84,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
85
|
- !ruby/object:Gem::Version
|
85
86
|
version: '0'
|
86
87
|
requirements: []
|
87
|
-
rubygems_version: 3.5.
|
88
|
+
rubygems_version: 3.5.16
|
88
89
|
signing_key:
|
89
90
|
specification_version: 4
|
90
91
|
summary: A gem that provides OpenTelemetry integration for the Sentry error logger
|