sidekiq-instrumentation 2.1.0 → 2.2.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: 76c071aa90de1ce0010399039e0216538baf0dfd2b41a631f0afac63e58a9215
4
- data.tar.gz: eb71f65e81d6e63aeb9341bffb6d6ba8a9bab9eda9654e5bd170c3b30c91f30e
3
+ metadata.gz: 24badc6c2a6de723c3c017e491d76a3489ac56a9139a2d69165cedb56f04ea9b
4
+ data.tar.gz: a6bcf731d582b6ee9b20629fc1c6416f388d2ad07046aed29d0a766e2a1e53af
5
5
  SHA512:
6
- metadata.gz: f4dafb5372d6c712250c81492c9a94bf81be17d561781357f785597e71e764b498e92755ce5d128d2b78ed2760b44b07791fe0f5ff2684dee1fc835e271bee6e
7
- data.tar.gz: 3448189ba2ca15c8d1686649c8f6b8861a81446d6b22f46a55aefd721c35ead71b27ad1667c32cf0b67a5a3eeeceba0ea614502a3b16aaef0c3b7ae50562a301
6
+ metadata.gz: cc362c313a76c29d4edadfd4997508f2b2e1759d2113f3be52b91c0dd381d8237175e22ec46eea3743b49b510285d39dd1e94f480bae0e81a6c4c244d4092533
7
+ data.tar.gz: d1b34c537a0c379438ed471aaa360086301c9594fd72d1dcfc213465f4c3b117540d7dc9f7b2e7e71cebe22c4fb91dbe99e13db970cc8471ff17753a955385be
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
 
2
2
  Changelog
3
3
  =========
4
+ ## 2.2.0 07/06/2023
5
+ * Stop using the follows from relationship for sidekiq job executions
6
+
4
7
  ## 2.1.0 11/29/2022
5
8
  * Fix compatibility issues in server & client middleware by removing deprecated #log in favor of #log_kv
6
9
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sidekiq-instrumentation (2.1.0)
4
+ sidekiq-instrumentation (2.2.0)
5
5
  opentracing (>= 0.3.1)
6
6
 
7
7
  GEM
@@ -29,7 +29,6 @@ module Sidekiq
29
29
 
30
30
  def build_span(job)
31
31
  tracer.start_span(operation_name(job),
32
- child_of: active_span.respond_to?(:call) ? active_span.call : active_span,
33
32
  tags: tags(job, "producer"))
34
33
  end
35
34
 
@@ -15,12 +15,7 @@ module Sidekiq
15
15
 
16
16
  # rubocop:disable Metrics/MethodLength
17
17
  def call(_worker, job, _queue)
18
- parent_span_context = extract(job)
19
-
20
- follows_from = OpenTracing::Reference.follows_from(parent_span_context)
21
-
22
18
  tracer.start_active_span(operation_name(job),
23
- references: [follows_from],
24
19
  ignore_active_scope: true,
25
20
  tags: tags(job, "consumer")) do |scope|
26
21
  begin
@@ -41,13 +36,6 @@ module Sidekiq
41
36
  span.set_tag("error", true)
42
37
  span.log_kv(**{ event: "error", 'error.object': error })
43
38
  end
44
-
45
- def extract(job)
46
- carrier = job[TRACE_CONTEXT_KEY]
47
- return unless carrier
48
-
49
- tracer.extract(OpenTracing::FORMAT_TEXT_MAP, carrier)
50
- end
51
39
  end
52
40
  end
53
41
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module Tracer
5
- VERSION = "2.1.0"
5
+ VERSION = "2.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-instrumentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - iaintshine
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-11-30 00:00:00.000000000 Z
12
+ date: 2023-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: opentracing