action_subscriber-opentracing 1.0.0 → 1.0.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: c5908b8849827b7537347ac4d3f9fb010d1e08fcae03ee8b0bda2e3193351241
4
- data.tar.gz: 412e9832f44977c0f1b30cb0e97bfafea60c0ecc978780bb8d99e7c5ada675de
3
+ metadata.gz: 391fcf0384ab422d08ced04a89987a9cb852914a5281902621d5cb8bf59ff453
4
+ data.tar.gz: 9e0269cfba31b7bf49491568145097ebb76018f6f745f15bcdf456bd86076d55
5
5
  SHA512:
6
- metadata.gz: 2f42099792162f5f856a37302ad11e78ee9c5c05cb9a013b57821dd89f94c6d7e610511afc91b73f140faca6af1051e0a9fd819f3b22012a26646682f3f9411f
7
- data.tar.gz: 731ee63d9ac97d047573f480a977421965b3a366301229b4d4c2c23c319eb4883c834f622f6664ebc6bd2897dd50f9117e43872321c38b68493a53ec71ba70b6
6
+ metadata.gz: bbcc82b2fd8bfca37320ba487d19afa6f1f1bc6af08d817aaa83270e7b2dcf33c3cdd323f5d374d9b29496ef24df5c2d8e39b0194db90017ac5a19ed6826a147
7
+ data.tar.gz: 33f2c715ff9f92f8bef57d1d1f6aba10d6eaf253a6b1a8184df6d66e5589b6884324fa7bbe40e122c727803ba7b9551eb85062459b4f3ef3369cb16812732541
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "opentracing"
2
4
 
3
5
  module ActionSubscriber
@@ -17,6 +19,7 @@ module ActionSubscriber
17
19
  options[:tags] = {}
18
20
  options[:tags]["routing_key"] = env.routing_key
19
21
  options[:tags]["published_at"] = published_at if published_at
22
+ options[:tags]["processed_at"] = Time.now.strftime("%F %T.%3N %Z")
20
23
 
21
24
  result = nil
22
25
  ::OpenTracing.start_active_span(operation, options) do
@@ -1,5 +1,5 @@
1
1
  module ActionSubscriber
2
2
  module OpenTracing
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_subscriber-opentracing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Minond