appoptics_apm 4.2.4 → 4.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -5
- data/Gemfile +3 -4
- data/Rakefile +0 -4
- data/build_gem.sh +1 -1
- data/examples/SDK/01_basic_tracing.rb +1 -1
- data/lib/appoptics_apm/api/util.rb +1 -1
- data/lib/appoptics_apm/version.rb +1 -1
- metadata +3 -4
- data/Vagrantfile +0 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d1af0fde8d463e8abf64ea52d19de5568dd0a413901e7606d8f2b09e8e287cf
|
4
|
+
data.tar.gz: 3dcdce10e5cff2eaa9a4dc9e5e18b2e1de0977980dc2279e9d3fef391d5e9c2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd095513a803c3c752185e4425c5e5eae4ad62a551e444770781977888325c4c903944edc38ddc3790aa7b4881f32cd79e6b91664d9f54c4db9c583650705dc4
|
7
|
+
data.tar.gz: a0a92a6e3740f37d09a3a66a880995ea15fb1a819805dab48d9ade259ac82e2827087631f3c672c0626d07793f37ff7bbdcbf40b8175f47b50db9dc27c64538a
|
data/.travis.yml
CHANGED
@@ -7,20 +7,20 @@ cache:
|
|
7
7
|
|
8
8
|
env:
|
9
9
|
- DBTYPE=postgresql
|
10
|
-
|
11
|
-
|
10
|
+
- DBTYPE=mysql2
|
11
|
+
- DBTYPE=mysql
|
12
12
|
|
13
13
|
rvm:
|
14
14
|
- 2.5.1
|
15
|
-
|
16
|
-
|
15
|
+
- 2.4.4
|
16
|
+
- 2.3.6
|
17
17
|
# - jruby-9.0.5.0
|
18
18
|
|
19
19
|
gemfile:
|
20
20
|
- gemfiles/libraries.gemfile
|
21
21
|
- gemfiles/unit.gemfile
|
22
22
|
- gemfiles/instrumentation_mocked.gemfile
|
23
|
-
|
23
|
+
- gemfiles/instrumentation_mocked_oldgems.gemfile
|
24
24
|
- gemfiles/frameworks.gemfile
|
25
25
|
- gemfiles/rails52.gemfile
|
26
26
|
# - gemfiles/rails51.gemfile
|
data/Gemfile
CHANGED
@@ -13,12 +13,11 @@ group :development, :test do
|
|
13
13
|
gem 'rubocop', require: false
|
14
14
|
gem 'ruby-prof'
|
15
15
|
gem 'benchmark-ips'
|
16
|
-
gem 'ruby-debug', :platforms =>
|
16
|
+
gem 'ruby-debug', :platforms => :jruby
|
17
17
|
gem 'debugger', :platform => :mri_19
|
18
|
-
gem 'byebug', :platforms => [:
|
19
|
-
# gem 'perftools.rb', :platforms => [ :mri_20, :mri_21 ], :require => 'perftools'
|
18
|
+
gem 'byebug', :platforms => [:mri_22, :mri_23, :mri_24]
|
20
19
|
gem 'pry'
|
21
|
-
gem 'pry-byebug',
|
20
|
+
gem 'pry-byebug', :platforms => [:mri_22, :mri_23, :mri_24]
|
22
21
|
end
|
23
22
|
|
24
23
|
if defined?(JRUBY_VERSION)
|
data/Rakefile
CHANGED
@@ -45,9 +45,6 @@ Rake::TestTask.new do |t|
|
|
45
45
|
FileList['test/instrumentation/*_test.rb'] +
|
46
46
|
FileList['test/profiling/*_test.rb'] -
|
47
47
|
['test/instrumentation/twitter-cassandra_test.rb']
|
48
|
-
# FIXME: exclude cassandra tests for now
|
49
|
-
# TODO: they need refactoring to use the 'cassandra-driver' gem
|
50
|
-
# ____ instead of the 'cassandra' gem, which hasn't had a commit since 09/2014
|
51
48
|
when /instrumentation_mocked/
|
52
49
|
# WebMock is interfering with other tests, so these have to run seperately
|
53
50
|
t.test_files = FileList['test/mocked/*_test.rb']
|
@@ -104,7 +101,6 @@ task :fetch_ext_deps do
|
|
104
101
|
# oboe and bson header files
|
105
102
|
FileUtils.mkdir_p(File.join(ext_src_dir, 'bson'))
|
106
103
|
%w(oboe.h oboe.hpp oboe_debug.h oboe.i bson/bson.h bson/platform_hacks.h).each do |filename|
|
107
|
-
# %w(oboe.h oboe_debug.h oboe.i bson/bson.h bson/platform_hacks.h).each do |filename|
|
108
104
|
remote_file = File.join(oboe_s3_dir, 'include', filename)
|
109
105
|
local_file = File.join(ext_src_dir, filename)
|
110
106
|
|
data/build_gem.sh
CHANGED
@@ -45,7 +45,7 @@ module AppOpticsAPM
|
|
45
45
|
return backtrace unless backtrace.is_a?(Array) && backtrace.size > BACKTRACE_CUTOFF
|
46
46
|
|
47
47
|
# Trim backtraces by getting the first 180 and last 20 lines
|
48
|
-
backtrace[0, 180] + ['...[snip]...'] + backtrace[
|
48
|
+
backtrace[0, 180] + ['...[snip]...'] + backtrace[backtrace.size - 20, 20]
|
49
49
|
end
|
50
50
|
|
51
51
|
# Internal: Check if a host is blacklisted from tracing
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appoptics_apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maia Engeli
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-09-
|
13
|
+
date: 2018-09-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -123,7 +123,6 @@ files:
|
|
123
123
|
- LICENSE
|
124
124
|
- README.md
|
125
125
|
- Rakefile
|
126
|
-
- Vagrantfile
|
127
126
|
- appoptics_apm.gemspec
|
128
127
|
- bin/appoptics_apm_config
|
129
128
|
- build_gem.sh
|
@@ -238,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
237
|
version: '0'
|
239
238
|
requirements: []
|
240
239
|
rubyforge_project:
|
241
|
-
rubygems_version: 2.7.
|
240
|
+
rubygems_version: 2.7.3
|
242
241
|
signing_key:
|
243
242
|
specification_version: 4
|
244
243
|
summary: AppOptics APM performance instrumentation gem for Ruby
|
data/Vagrantfile
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
# -*- mode: ruby -*-
|
2
|
-
# vi: set ft=ruby :
|
3
|
-
|
4
|
-
# This Vagrantfile creates a build machine for our appoptics_apm gem.
|
5
|
-
# Usage:
|
6
|
-
# $ vagrant up
|
7
|
-
# $ vagrant ssh
|
8
|
-
# $ ./build_gems.bash
|
9
|
-
#
|
10
|
-
# The project directory on your host will be shared to /vagrant in the VM
|
11
|
-
|
12
|
-
# Your rubygems push credentials, if saved.
|
13
|
-
dot_gem_credentials = File.expand_path(ENV['vg_dot_gem_credentials'] || '~/.gem/credentials')
|
14
|
-
|
15
|
-
Vagrant.configure("2") do |config|
|
16
|
-
|
17
|
-
config.vm.box = "ubuntu/trusty64"
|
18
|
-
|
19
|
-
config.vm.provision "shell", privileged: false, inline: <<-SHELL
|
20
|
-
# install OS packages
|
21
|
-
sudo apt-get update
|
22
|
-
sudo apt-get install -y build-essential curl git-core libssl-dev libreadline-dev openjdk-7-jdk zlib1g-dev
|
23
|
-
|
24
|
-
# rbenv setup
|
25
|
-
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
26
|
-
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
|
27
|
-
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
|
28
|
-
echo 'eval "$(rbenv init -)"' >> ~/.profile
|
29
|
-
. ~/.profile
|
30
|
-
|
31
|
-
# install rubies to build our gem against
|
32
|
-
rbenv install 2.3.1
|
33
|
-
rbenv install jruby-9.0.5.0
|
34
|
-
|
35
|
-
# install swig 3.0.8
|
36
|
-
sudo apt-get install -y libpcre3-dev
|
37
|
-
curl -LO http://kent.dl.sourceforge.net/project/swig/swig/swig-3.0.8/swig-3.0.8.tar.gz
|
38
|
-
tar xzf swig-3.0.8.tar.gz
|
39
|
-
pushd swig-3.0.8
|
40
|
-
./configure && make && sudo make install
|
41
|
-
popd
|
42
|
-
SHELL
|
43
|
-
|
44
|
-
if File.exist? dot_gem_credentials
|
45
|
-
config.vm.provision "file",
|
46
|
-
source: dot_gem_credentials,
|
47
|
-
destination: "~/.gem/credentials"
|
48
|
-
end
|
49
|
-
|
50
|
-
config.vm.provision "shell", privileged: false, inline: <<-SHELL
|
51
|
-
cat <<'BUILDSCRIPT'> ~/build_gems.bash
|
52
|
-
#!/usr/bin/env bash
|
53
|
-
cd /vagrant
|
54
|
-
export RBENV_VERSION=jruby-9.0.5.0
|
55
|
-
jruby -S gem build appoptics_apm.gemspec
|
56
|
-
|
57
|
-
export RBENV_VERSION=2.3.1
|
58
|
-
gem build appoptics_apm.gemspec
|
59
|
-
|
60
|
-
ls -la appoptics_apm*.gem
|
61
|
-
|
62
|
-
echo "publish to rubygems via: gem push <gem>"
|
63
|
-
BUILDSCRIPT
|
64
|
-
chmod 755 ~/build_gems.bash
|
65
|
-
SHELL
|
66
|
-
|
67
|
-
end
|