instana 1.4.0 → 1.4.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
  SHA1:
3
- metadata.gz: b99877f95d6100bd27c7baaf1c55480ee4144d94
4
- data.tar.gz: 7ff1ffe1eda5611cc0abcf0be984929ec081971c
3
+ metadata.gz: e9acd85150980908ae5191e57b120c3d41b9bcef
4
+ data.tar.gz: 748ac98229a580a4622ec9aa467880909cf3d14c
5
5
  SHA512:
6
- metadata.gz: 0a97650d236dab27448c10643668081895a4d162d0f2b5d9706527b5d88d779723997a913d36b2bee50401b37a5c9d50394862035d5bde109c77c9c241dbd513
7
- data.tar.gz: 893a53e42b37e577cab9e71ead189a15eb2f60a4c8cefd4b1eab9df4f0bf1aeb30a6b12eac731d444058a8c2ca6f6e37ef5b57eca214ddbda906c1a17ac9e937
6
+ metadata.gz: 1ca710a879105e4d700044bb084f8445e924402f0ef781e394366459f9d2e6d06ff49f75f27b92ebf026b1ef21694e9cb36c52ba4fa0961a3adaa2bcec19d7d4
7
+ data.tar.gz: fcebbf2c4b833afaf93bb6d5b81caa82d4cb0c395cce4b70d19bc433e8b0d704f05cfd25549456fa84653332953d069cb51d28a39725e4dcd0d2bf74eb2caf1b
data/Configuration.md CHANGED
@@ -99,7 +99,24 @@ require "logger"
99
99
  ::Instana.logger.level = ::Logger::WARN
100
100
  ```
101
101
 
102
- It also allows the debug level to be configured that affects
102
+ The gem can be configured to use your application logger instead:
103
+
104
+ ```
105
+ ::Instana.logger = ::Rails.logger
106
+ ```
107
+
108
+ ### Debugging & More Verbosity
109
+
110
+ #### Environment Variable
111
+
112
+ Setting `INSTANA_GEM_DEV` to a non nil value will enable extra logging output generally useful
113
+ for development.
114
+
115
+ #### Extended Debug Logging
116
+
117
+ _Note: To use this, you must leave the gem original logger intact and not replace it as described above._
118
+
119
+ The gem allows the debug level to be configured that affects
103
120
  what extra debug info it reports. It allows for:
104
121
 
105
122
  * `:agent` - shows all agent state related debug messages
data/Dockerfile ADDED
@@ -0,0 +1,13 @@
1
+ # For development/testing, you can run this instrumentation
2
+ # interactively in a Docker container:
3
+ # docker build -t instana/ruby-sensor-console:0.1
4
+ # docker run -it instana/ruby-sensor-console:0.1
5
+ #
6
+ FROM ruby:2.3.1
7
+ RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs openssh-client git vim zip curl uni2ascii bsdmainutils
8
+ RUN mkdir /ruby-sensor
9
+ WORKDIR /ruby-sensor
10
+ COPY Gemfile Gemfile.lock instana.gemspec ./
11
+ COPY . ./
12
+ RUN gem install bundler && bundle install --jobs 20 --retry 5
13
+ CMD bundle exec rake console
data/lib/instana/util.rb CHANGED
@@ -129,7 +129,17 @@ module Instana
129
129
  #
130
130
  def collect_process_info
131
131
  process = {}
132
- cmdline = ProcTable.ps(Process.pid).cmdline.split("\0")
132
+ cmdline_file = "/proc/#{Process.pid}/cmdline"
133
+
134
+ # If there is a /proc filesystem, we read this manually so
135
+ # we can split on embedded null bytes. Otherwise (e.g. OSX, Windows)
136
+ # use ProcTable.
137
+ if File.exist?(cmdline_file)
138
+ cmdline = IO.read(cmdline_file).split(?\x00)
139
+ else
140
+ cmdline = ProcTable.ps(Process.pid).cmdline.split(?\x00)
141
+ end
142
+
133
143
  process[:name] = cmdline.shift
134
144
  process[:arguments] = cmdline
135
145
 
@@ -1,4 +1,4 @@
1
1
  module Instana
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
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.0
4
+ version: 1.4.1
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-03-15 00:00:00.000000000 Z
11
+ date: 2017-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -162,6 +162,7 @@ files:
162
162
  - ".rubocop.yml"
163
163
  - ".travis.yml"
164
164
  - Configuration.md
165
+ - Dockerfile
165
166
  - Gemfile
166
167
  - README.md
167
168
  - Rakefile