minato-trace 0.1.6.pre.4 → 0.1.6.pre.5

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: 617a746f57e557883faa90fc72e8c3a078483585df6f97f4cebb64130daf68f4
4
- data.tar.gz: 396d2536e8209f0481bf305431a8b2f8a06952e863e7fd8a9a95df41c4855719
3
+ metadata.gz: 93e2a38f5087c2f9a9e7e6435a6bf06236675afa12f488c0da1cacc7e07d681d
4
+ data.tar.gz: ae6a13cf5ea68a77adf7d761a70f07075c1d088b7e3e5f4d6cb409394c243a0d
5
5
  SHA512:
6
- metadata.gz: e06b1e3043379e75f268dc69f35a70acf07f66f7160bf241a0959c6bd8ce11cb400581d7f1b274f3f85acba02ad91e1194ec37fa552e6389166a4995a46d8e84
7
- data.tar.gz: 614be0218c0805fcb7e01ff2097fa54f30d83317fe7dc5f9afc81dd95cc9bcea5eaf5dc912a52d6a5d46c75f7719765981a6d315cceec30cc10758854f7b83cb
6
+ metadata.gz: ee83971d6cccd57a2fea6bf9b9ce958860149878342c3b269fd071bd147ae564dcc45514cd0bbe6f969076a1366d655a9bff0aa96e73f5ef262f84c4620b28aa
7
+ data.tar.gz: 210ce765091b1fc71168fb4b40de1a76c8ddd2bf0400a25c0f40375d557a739250aa8cab8501a5e21208eb89dd3d59ab862c2a4c7159aa8257c51806a6d89161
@@ -13,6 +13,8 @@ module Minato
13
13
  private
14
14
 
15
15
  def add_trace_to_logs(log)
16
+ return log if current_cloud_trace.nil?
17
+
16
18
  trace_log = "projects/#{current_cloud_trace.trace.project_id}/traces/#{current_cloud_trace.trace.trace_id}"
17
19
 
18
20
  log.merge({ "logging.googleapis.com/trace": trace_log,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Minato
4
4
  module Trace
5
- VERSION = "0.1.6-4"
5
+ VERSION = "0.1.6-5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minato-trace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.pre.4
4
+ version: 0.1.6.pre.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ferreri