sbmt-outbox 6.10.0 → 6.10.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b9f32bdc55d20994a9ccd6a7c448b68b1732e9c0667ed06494b594635188dad
|
|
4
|
+
data.tar.gz: da53b24ea40c840c5324ee3176f8341b4e0f96e19d6905dcd1e1df93f49913b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 721fcc1d9eb752ec086cb51407f6f387c33bde2d11c0ef57046154dc1ccf7a9d2eb34b61ac4a3668dcff0893ae4c394cea216605d2bd9780e417facb2ff2b215
|
|
7
|
+
data.tar.gz: 2eac4d443109be1ba47d0d2acff62eb3151cc7f9425d7eb71478fec2b5f478fe4824b8270ed0d763fc1f2aa93390c5f6cfd17f43fe2a851f7eca851050c459fa
|
|
@@ -74,7 +74,7 @@ module Sbmt
|
|
|
74
74
|
def partition_strategy
|
|
75
75
|
return @partition_strategy if defined?(@partition_strategy)
|
|
76
76
|
|
|
77
|
-
str_name = options.fetch(:partition_strategy, DEFAULT_PARTITION_STRATEGY)
|
|
77
|
+
str_name = options.fetch(:partition_strategy, DEFAULT_PARTITION_STRATEGY).to_s
|
|
78
78
|
@partition_strategy = "Sbmt::Outbox::PartitionStrategies::#{str_name.camelize}Partitioning".constantize
|
|
79
79
|
end
|
|
80
80
|
|
|
@@ -28,7 +28,9 @@ module Sbmt
|
|
|
28
28
|
extracted_context = ::OpenTelemetry.propagation.extract(item_options_headers)
|
|
29
29
|
::OpenTelemetry::Context.with_current(extracted_context) do
|
|
30
30
|
tracer.in_span(span_name(item_class), attributes: span_attributes.compact, kind: :consumer) do
|
|
31
|
-
|
|
31
|
+
Sbmt::Outbox.logger.with_tags(trace_id: trace_id) do
|
|
32
|
+
yield
|
|
33
|
+
end
|
|
32
34
|
end
|
|
33
35
|
end
|
|
34
36
|
end
|
|
@@ -42,6 +44,12 @@ module Sbmt
|
|
|
42
44
|
def span_name(item_class)
|
|
43
45
|
"#{item_class.box_type}/#{item_class.box_name} process item"
|
|
44
46
|
end
|
|
47
|
+
|
|
48
|
+
def trace_id
|
|
49
|
+
context = ::OpenTelemetry::Trace.current_span.context
|
|
50
|
+
|
|
51
|
+
context.valid? ? context.hex_trace_id : nil
|
|
52
|
+
end
|
|
45
53
|
end
|
|
46
54
|
end
|
|
47
55
|
end
|
data/lib/sbmt/outbox/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sbmt-outbox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.10.
|
|
4
|
+
version: 6.10.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sbermarket Ruby-Platform Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|
|
@@ -640,7 +640,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
640
640
|
- !ruby/object:Gem::Version
|
|
641
641
|
version: '0'
|
|
642
642
|
requirements: []
|
|
643
|
-
rubygems_version: 3.
|
|
643
|
+
rubygems_version: 3.1.6
|
|
644
644
|
signing_key:
|
|
645
645
|
specification_version: 4
|
|
646
646
|
summary: Outbox service
|