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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41e9102df185ce17f39e5672ab310253a6da3b5a
4
- data.tar.gz: 9d33cbb5c796cef2c399569c563c3b378ebd25b7
3
+ metadata.gz: cfbeb7f48e3d0d69c313519deb00183597c21e4c
4
+ data.tar.gz: 6bffdf8a149bcb61368dc91e3ca75b89031fef05
5
5
  SHA512:
6
- metadata.gz: db1c1bbc9c8281f656504a33ad21c0548fb8e1cdee420ec36efc1123dc98f736dbec6a546e47853bdf24a21ad77089dd19b10eb2bd2ac12a64144630bfc10346
7
- data.tar.gz: e97976dc47fd4240cb58f8b1ccaf2d918133370cfbbb46c204fdc40a0560aecfeb0e5b9df8a8b8be055e968e7625cff28f0c87c084fcf60ebd2a6eead2210c99
6
+ metadata.gz: f680252a3b107bd70e75dcfc8364ab67b577e32c10d300ef46d6468ec22f8983dbe7ab659371d4d27a7867dfbcc22bbe08288ede9df265d63cab11b3daeba101
7
+ data.tar.gz: ce6dd7886eb3ddb795dc644b57f86f9a674c98b812ea9588678d4ea1664934c654e04247507899e19e0e08a6c3543d2bee3df0241b0767ad49bb40948477fc35
@@ -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 Chef change visibility for your deploys? Checkout [instana-chef](https://github.com/instana/instana-chef).
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
 
@@ -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
- if span.custom?
86
- if span[:data][:sdk].key?(:custom)
87
- span[:data][:sdk][:custom].merge!(kvs)
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
@@ -1,4 +1,4 @@
1
1
  module Instana
2
- VERSION = "1.4.8"
2
+ VERSION = "1.4.9"
3
3
  VERSION_FULL = "instana-#{VERSION}"
4
4
  end
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.8
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-05-22 00:00:00.000000000 Z
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.4.5.2
273
+ rubygems_version: 2.6.12
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: Ruby sensor for Instana