minato-trace 0.1.6.pre.7 → 0.1.6.pre.8
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: b078fd8e99c2fca688086dc884237d7cc0df9b7983fa414a9f9445d31654d95e
|
4
|
+
data.tar.gz: 6ca475579e465b92f0b905056b42b46915d253f42330744bd3e1864fff5f640f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89bfdfcd138c7d2f6b1d6b4f13d6b3460052894b6b035a56113062c394ab08df76fc9e8610f8bbdaf8cfd180c39058bcd7acfaa7126ae97628918bf06ae138df
|
7
|
+
data.tar.gz: 4185e6c144ca45b6ad366ecfbbfb7fa5ecd49ca6e9b1977d65bd0bd591205aa25cf51717d076de838bfa06db4cf1f113a215c2e3ecf739371fcd9bcbd6e7b16a
|
@@ -19,7 +19,9 @@ module Minato
|
|
19
19
|
private
|
20
20
|
|
21
21
|
def add_trace_context_header(env)
|
22
|
-
return unless
|
22
|
+
return unless Rails.env.production? && Minato::Trace.enabled?
|
23
|
+
|
24
|
+
return if current_cloud_trace.nil?
|
23
25
|
|
24
26
|
env.request_headers.merge!({ "#{TRACE_HEADER_KEY}": "#{current_cloud_trace.trace.trace_id};o=1" })
|
25
27
|
end
|
data/lib/minato/trace/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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
|
+
version: 0.1.6.pre.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ferreri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-trace
|