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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 391fcf0384ab422d08ced04a89987a9cb852914a5281902621d5cb8bf59ff453
|
4
|
+
data.tar.gz: 9e0269cfba31b7bf49491568145097ebb76018f6f745f15bcdf456bd86076d55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|