instana 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Configuration.md +18 -1
- data/Dockerfile +13 -0
- data/lib/instana/util.rb +11 -1
- data/lib/instana/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9acd85150980908ae5191e57b120c3d41b9bcef
|
4
|
+
data.tar.gz: 748ac98229a580a4622ec9aa467880909cf3d14c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
|
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.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-
|
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
|