instana 1.4.8 → 1.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Configuration.md +12 -0
- data/README.md +1 -1
- data/lib/instana/tracing/span.rb +0 -13
- data/lib/instana/tracing/trace.rb +3 -17
- data/lib/instana/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfbeb7f48e3d0d69c313519deb00183597c21e4c
|
4
|
+
data.tar.gz: 6bffdf8a149bcb61368dc91e3ca75b89031fef05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f680252a3b107bd70e75dcfc8364ab67b577e32c10d300ef46d6468ec22f8983dbe7ab659371d4d27a7867dfbcc22bbe08288ede9df265d63cab11b3daeba101
|
7
|
+
data.tar.gz: ce6dd7886eb3ddb795dc644b57f86f9a674c98b812ea9588678d4ea1664934c654e04247507899e19e0e08a6c3543d2bee3df0241b0767ad49bb40948477fc35
|
data/Configuration.md
CHANGED
@@ -18,6 +18,18 @@ Instana.config[:metrics][:enabled] # default true
|
|
18
18
|
Instana.config[:tracing][:enabled] # default true
|
19
19
|
```
|
20
20
|
|
21
|
+
## Agent Communication
|
22
|
+
|
23
|
+
The sensor tries to communicate with the Instana agent via IP 127.0.0.1 and as a fallback via the host's default gateway. Should the agent not be available under either of these IPs, e.g. due to iptables or other networking tricks, you can use the agentHost option to use a custom IP.
|
24
|
+
|
25
|
+
```Ruby
|
26
|
+
# Leverage environment variable
|
27
|
+
::Instana.config[:agent_host] = ENV['INSTANA_AGENT_IP']
|
28
|
+
|
29
|
+
# Custom agent port
|
30
|
+
::Instana.config[:agent_port] = 42699
|
31
|
+
```
|
32
|
+
|
21
33
|
## Enabling/Disabling Individual Components
|
22
34
|
|
23
35
|
Individual components can be enabled and disabled with a local config.
|
data/README.md
CHANGED
@@ -96,5 +96,5 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/instan
|
|
96
96
|
|
97
97
|
## More
|
98
98
|
|
99
|
-
Want
|
99
|
+
Want to instrument other languages? See our [Nodejs instrumentation](https://github.com/instana/nodejs-sensor), [Go instrumentation](https://github.com/instana/golang-sensor) or [many other supported technologies](https://www.instana.com/supported-technologies/).
|
100
100
|
|
data/lib/instana/tracing/span.rb
CHANGED
@@ -107,19 +107,6 @@ module Instana
|
|
107
107
|
def configure_custom(name)
|
108
108
|
@data[:n] = :sdk
|
109
109
|
@data[:data] = { :sdk => { :name => name.to_sym } }
|
110
|
-
|
111
|
-
#if kvs.is_a?(Hash)
|
112
|
-
# @data[:data][:sdk][:type] = kvs.key?(:type) ? kvs[:type] : :local
|
113
|
-
#
|
114
|
-
# if kvs.key?(:arguments)
|
115
|
-
# @data[:data][:sdk][:arguments] = kvs[:arguments]
|
116
|
-
# end
|
117
|
-
#
|
118
|
-
# if kvs.key?(:return)
|
119
|
-
# @data[:data][:sdk][:return] = kvs[:return]
|
120
|
-
# end
|
121
|
-
# @data[:data][:sdk][:custom] = kvs unless kvs.empty?
|
122
|
-
# end
|
123
110
|
self
|
124
111
|
end
|
125
112
|
|
@@ -82,23 +82,9 @@ module Instana
|
|
82
82
|
def add_info(kvs, span = nil)
|
83
83
|
span ||= @current_span
|
84
84
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
else
|
89
|
-
span[:data][:sdk][:custom] = kvs
|
90
|
-
end
|
91
|
-
else
|
92
|
-
kvs.each_pair do |k,v|
|
93
|
-
if !span[:data].key?(k)
|
94
|
-
span[:data][k] = v
|
95
|
-
elsif v.is_a?(Hash) && span[:data][k].is_a?(Hash)
|
96
|
-
span[:data][k].merge!(v)
|
97
|
-
else
|
98
|
-
span[:data][k] = v
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
85
|
+
# Pass on to the OT span interface which will properly
|
86
|
+
# apply KVs based on span type
|
87
|
+
span.set_tags(kvs)
|
102
88
|
end
|
103
89
|
|
104
90
|
# Log an error into the current span
|
data/lib/instana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Giacomo Lombardo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
270
|
version: '0'
|
271
271
|
requirements: []
|
272
272
|
rubyforge_project:
|
273
|
-
rubygems_version: 2.
|
273
|
+
rubygems_version: 2.6.12
|
274
274
|
signing_key:
|
275
275
|
specification_version: 4
|
276
276
|
summary: Ruby sensor for Instana
|