newrelic_rpm 3.14.1.311 → 3.14.2.312
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +174 -11
- data/CHANGELOG +22 -0
- data/Rakefile +5 -0
- data/lib/new_relic/agent/agent.rb +22 -7
- data/lib/new_relic/agent/aws_info.rb +1 -1
- data/lib/new_relic/agent/custom_event_aggregator.rb +19 -44
- data/lib/new_relic/agent/error_event_aggregator.rb +11 -103
- data/lib/new_relic/agent/event_aggregator.rb +130 -0
- data/lib/new_relic/agent/event_buffer.rb +7 -0
- data/lib/new_relic/agent/instrumentation/middleware_tracing.rb +18 -2
- data/lib/new_relic/agent/instrumentation/sinatra/transaction_namer.rb +12 -4
- data/lib/new_relic/agent/new_relic_service.rb +6 -4
- data/lib/new_relic/agent/sampled_buffer.rb +9 -6
- data/lib/new_relic/agent/stats_engine/metric_stats.rb +1 -2
- data/lib/new_relic/agent/stats_engine/stats_hash.rb +2 -1
- data/lib/new_relic/agent/supported_versions.rb +1 -1
- data/lib/new_relic/agent/synthetics_event_aggregator.rb +52 -0
- data/lib/new_relic/agent/synthetics_event_buffer.rb +0 -2
- data/lib/new_relic/agent/transaction.rb +14 -7
- data/lib/new_relic/agent/transaction/request_attributes.rb +7 -2
- data/lib/new_relic/agent/transaction_error_primitive.rb +72 -0
- data/lib/new_relic/agent/transaction_event_aggregator.rb +33 -210
- data/lib/new_relic/agent/transaction_event_primitive.rb +106 -0
- data/lib/new_relic/agent/transaction_event_recorder.rb +48 -0
- data/lib/new_relic/agent/transaction_metrics.rb +9 -1
- data/lib/new_relic/agent/transction_event_recorder.rb +35 -0
- data/lib/new_relic/recipes/capistrano3.rb +1 -1
- data/lib/new_relic/version.rb +1 -1
- data/lib/tasks/versions.html.erb +13 -11
- data/lib/tasks/versions.postface.html +8 -0
- data/lib/tasks/versions.preface.html +3 -0
- data/lib/tasks/versions.rake +15 -5
- data/test/agent_helper.rb +1 -1
- data/test/environments/rails31/Gemfile +2 -0
- data/test/environments/rails32/Gemfile +2 -0
- data/test/environments/rails32/Rakefile +2 -1
- data/test/environments/rails32/config/database.yml +1 -6
- data/test/multiverse/suites/active_record/Envfile +1 -0
- data/test/multiverse/suites/agent_only/agent_attributes_test.rb +18 -0
- data/test/multiverse/suites/agent_only/custom_analytics_events_test.rb +21 -6
- data/test/multiverse/suites/agent_only/error_events_test.rb +14 -6
- data/test/multiverse/suites/agent_only/transaction_events_test.rb +31 -0
- data/test/multiverse/suites/agent_only/utilization_data_collection_test.rb +2 -0
- data/test/multiverse/suites/capistrano/Envfile +9 -3
- data/test/multiverse/suites/capistrano2/Envfile +4 -0
- data/test/multiverse/suites/config_file_loading/Envfile +1 -1
- data/test/multiverse/suites/curb/Envfile +1 -1
- data/test/multiverse/suites/datamapper/Envfile +3 -0
- data/test/multiverse/suites/deferred_instrumentation/sinatra_test.rb +7 -3
- data/test/multiverse/suites/grape/grape_test.rb +2 -0
- data/test/multiverse/suites/padrino/Envfile +4 -3
- data/test/multiverse/suites/padrino/config/newrelic.yml +2 -0
- data/test/multiverse/suites/rack/config/newrelic.yml +18 -0
- data/test/multiverse/suites/rack/nested_non_rack_app_test.rb +1 -1
- data/test/multiverse/suites/rack/puma_rack_builder_test.rb +17 -14
- data/test/multiverse/suites/rack/rack_auto_instrumentation_test.rb +16 -13
- data/test/multiverse/suites/rack/rack_unsupported_version_test.rb +1 -1
- data/test/multiverse/suites/rails/Envfile +5 -0
- data/test/multiverse/suites/rails/parameter_capture_test.rb +9 -0
- data/test/multiverse/suites/rake/Envfile +2 -1
- data/test/multiverse/suites/redis/redis_instrumentation_test.rb +1 -1
- data/test/multiverse/suites/sidekiq/Envfile +18 -0
- data/test/multiverse/suites/sidekiq/sidekiq_instrumentation_test.rb +11 -10
- data/test/multiverse/suites/sidekiq/test_model.rb +12 -0
- data/test/multiverse/suites/sinatra/ignoring_test.rb +43 -25
- data/test/multiverse/suites/sinatra/nested_middleware_test.rb +10 -2
- data/test/multiverse/suites/sinatra/sinatra_classic_test.rb +4 -0
- data/test/multiverse/suites/sinatra/sinatra_metric_explosion_test.rb +8 -2
- data/test/multiverse/suites/sinatra/sinatra_modular_test.rb +4 -0
- data/test/multiverse/suites/sinatra/sinatra_parameter_capture_test.rb +2 -0
- data/test/multiverse/suites/sinatra/sinatra_test_cases.rb +79 -10
- data/test/new_relic/agent/agent_test.rb +3 -3
- data/test/new_relic/agent/aws_info_test.rb +1 -2
- data/test/new_relic/agent/configuration/orphan_configuration_test.rb +2 -0
- data/test/new_relic/agent/custom_event_aggregator_test.rb +43 -4
- data/test/new_relic/agent/error_collector_test.rb +1 -1
- data/test/new_relic/agent/error_event_aggregator_test.rb +13 -81
- data/test/new_relic/agent/event_aggregator_test.rb +178 -0
- data/test/new_relic/agent/event_buffer_test_cases.rb +16 -0
- data/test/new_relic/agent/instrumentation/sinatra/transaction_namer_test.rb +7 -0
- data/test/new_relic/agent/new_relic_service_test.rb +7 -1
- data/test/new_relic/agent/pipe_channel_manager_test.rb +45 -3
- data/test/new_relic/agent/rpm_agent_test.rb +1 -0
- data/test/new_relic/agent/stats_engine/stats_hash_test.rb +2 -2
- data/test/new_relic/agent/synthetics_event_aggregator_test.rb +179 -0
- data/test/new_relic/agent/transaction/request_attributes_test.rb +8 -0
- data/test/new_relic/agent/transaction_error_primitive_test.rb +117 -0
- data/test/new_relic/agent/transaction_event_aggregator_test.rb +148 -374
- data/test/new_relic/agent/transaction_event_primitive_test.rb +195 -0
- data/test/new_relic/agent/transaction_event_recorder_test.rb +80 -0
- data/test/new_relic/agent/transaction_metrics_test.rb +7 -7
- data/test/new_relic/agent/transaction_test.rb +4 -4
- data/test/new_relic/agent/utilization_data_test.rb +7 -7
- data/test/new_relic/fake_collector.rb +10 -17
- data/test/new_relic/license_test.rb +2 -0
- data/test/new_relic/marshalling_test_cases.rb +1 -1
- data/test/nullverse/default_source_require_test.rb +21 -0
- data/test/nullverse/nullverse_helper.rb +10 -0
- data/test/performance/suites/active_record.rb +1 -1
- data/test/performance/suites/sql_obfuscation.rb +7 -6
- data/test/script/ci.sh +10 -165
- data/test/script/install_mongodb.sh +6 -0
- metadata +21 -6
- data/test/script/build_test_gem.sh +0 -57
- data/test/script/ci_agent-tests_runner.sh +0 -82
- data/test/script/ci_bench.sh +0 -52
- data/test/script/ci_multiverse_runner.sh +0 -63
@@ -119,7 +119,7 @@ module MarshallingTestCases
|
|
119
119
|
result = $collector.calls_for('error_event_data')
|
120
120
|
|
121
121
|
assert_equal 1, result.length
|
122
|
-
events = result.first.
|
122
|
+
events = result.first.events
|
123
123
|
assert_equal 1, events.length
|
124
124
|
|
125
125
|
expected_event = [
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# This file is distributed under New Relic's license terms.
|
3
|
+
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
|
4
|
+
|
5
|
+
require File.expand_path(File.join(File.dirname(__FILE__), 'nullverse_helper'))
|
6
|
+
|
7
|
+
# this test exists to ensure that default source doesn't depend on specific parts
|
8
|
+
# of the agent having been previously required when default_source is required.
|
9
|
+
|
10
|
+
class DefaultSourceRequireTest < Minitest::Test
|
11
|
+
def test_require_default_source_doesnt_raise
|
12
|
+
exception = nil
|
13
|
+
begin
|
14
|
+
require 'new_relic/agent/configuration/default_source'
|
15
|
+
rescue => e
|
16
|
+
exception = e
|
17
|
+
end
|
18
|
+
|
19
|
+
assert_nil exception, "Expected not to raise when requiring default source without the agent"
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# This file is distributed under New Relic's license terms.
|
3
|
+
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
|
4
|
+
require 'minitest/autorun'
|
5
|
+
|
6
|
+
unless defined?(Minitest::Test)
|
7
|
+
Minitest::Test = MiniTest::Unit::TestCase
|
8
|
+
end
|
9
|
+
|
10
|
+
$:.unshift File.expand_path('../../lib', File.dirname(__FILE__))
|
@@ -7,7 +7,7 @@ class ActiveRecordTest < Performance::TestCase
|
|
7
7
|
def setup
|
8
8
|
require 'new_relic/agent/instrumentation/active_record_helper'
|
9
9
|
|
10
|
-
const_set(:ActiveRecordHelper, NewRelic::Agent::Instrumentation::ActiveRecordHelper) unless defined?(ActiveRecordHelper)
|
10
|
+
ActiveRecordTest.const_set(:ActiveRecordHelper, NewRelic::Agent::Instrumentation::ActiveRecordHelper) unless defined?(ActiveRecordHelper)
|
11
11
|
|
12
12
|
if ActiveRecordHelper.respond_to?(:metrics_for)
|
13
13
|
@run = ActiveRecordHelper.method(:metrics_for)
|
@@ -5,13 +5,14 @@
|
|
5
5
|
class SqlObfuscationTests < Performance::TestCase
|
6
6
|
def setup
|
7
7
|
require 'new_relic/agent/database'
|
8
|
-
|
9
|
-
|
8
|
+
long_query = "SELECT DISTINCT table0.* FROM `table0` INNER JOIN `table1` ON `table1`.`metric_id` = `table0`.`id` LEFT JOIN `table3` ON table3.id_column = table0.id_column AND table3.metric_id = table0.id WHERE `table1`.`other_id` IN (92776, 49992, 61710, 84911, 90744, 40647) AND `table0`.`id_column` = 81067 AND `table0`.`col12` = '' AND ((table0.id_column=81067 )) AND ((table3.timestamp IS NULL OR table3.timestamp > 1406810459)) AND (((table0.name LIKE 'WebTransaction/%') OR ((table0.name LIKE 'OtherTransaction/%/%') AND (table0.name NOT LIKE '%/all')))) LIMIT 2250"
|
9
|
+
short_query = "SELECT * FROM `table` WHERE id=2540250 AND name LIKE 'OtherTransaction/%/%'"
|
10
10
|
|
11
|
-
@
|
12
|
-
@
|
13
|
-
|
14
|
-
@
|
11
|
+
@long_query = NewRelic::Agent::Database::Statement.new(long_query)
|
12
|
+
@short_query = NewRelic::Agent::Database::Statement.new(short_query)
|
13
|
+
|
14
|
+
@long_query_pg = NewRelic::Agent::Database::Statement.new(long_query, {:adapter => 'postgresql'})
|
15
|
+
@short_query_pg = NewRelic::Agent::Database::Statement.new(short_query, {:adapter => 'postgresql'})
|
15
16
|
end
|
16
17
|
|
17
18
|
def test_obfuscate_sql
|
data/test/script/ci.sh
CHANGED
@@ -1,170 +1,15 @@
|
|
1
1
|
#!/bin/bash
|
2
|
-
|
3
|
-
# Script to run test suites in CI or in development mode. This script handles
|
4
|
-
# checking out test dependencies (currently rpm_test_app and its dependencies)
|
5
|
-
# and executing them.
|
6
|
-
#
|
7
|
-
# It relies on 2 environment variables:
|
8
|
-
#
|
9
|
-
# RUBY_VERSION - The rbenv ruby you want to use (e.g. 1.8.7, ree, jruby)
|
10
|
-
#
|
11
|
-
# BRANCH - The rpm_test_app branch you want to use (e.g. rails20, rails31)
|
12
|
-
#
|
13
|
-
# Example usage:
|
14
|
-
# RUBY_VERSION=ree BRANCH=rails20 test/script/ci.sh
|
15
|
-
#
|
16
|
-
# RUBY_VERSION=ree BRANCH=rails20 test/script/ci.sh
|
17
|
-
#
|
18
|
-
# RUBY_VERSION=jruby BRANCH=rails22 test/script/ci.sh
|
19
|
-
|
20
|
-
echo "Executing $0"
|
21
|
-
echo "Running in $(pwd)"
|
22
|
-
|
23
|
-
# print commands in this script as they're invoked
|
24
|
-
#set -x
|
25
|
-
# fail if any command fails
|
26
2
|
set -e
|
27
3
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
export RUBY_VERSION=1.9.3-p374
|
33
|
-
fi
|
34
|
-
if [ "x$BRANCH" == "x" ]; then
|
35
|
-
echo '$BRANCH is undefined'
|
36
|
-
echo 'defaulting to rails31'
|
37
|
-
export BRANCH=rails31
|
38
|
-
fi
|
39
|
-
|
40
|
-
if [ "x$JOB_NAME" == "x" ]; then
|
41
|
-
echo '$JOB_NAME is undefined'
|
42
|
-
echo 'defaulting to clrun'
|
43
|
-
export PROJECT_NAME=clrun
|
44
|
-
else
|
45
|
-
CLEANSED_NAME=`echo $JOB_NAME | sed "s/label//" | sed "s/Portland//" | sed "s/BRANCH//" | sed "s/RUBY_VERSION//" | sed "s/[=\/,\._]//g" | sed "s/ReleaseCandidate/RC/"`
|
46
|
-
echo "setting PROJECT_NAME to $CLEANSED_NAME"
|
47
|
-
export PROJECT_NAME="$CLEANSED_NAME"
|
48
|
-
fi
|
49
|
-
|
50
|
-
eval "$(rbenv init -)" || true
|
51
|
-
rbenv shell $RUBY_VERSION
|
52
|
-
if [ "x$(rbenv version-name)" = "x$RUBY_VERSION" ]; then
|
53
|
-
echo "switched to ruby $RUBY_VERSION"
|
54
|
-
else
|
55
|
-
rbenv install $RUBY_VERSION
|
56
|
-
rbenv shell $RUBY_VERSION
|
57
|
-
if [ "x$(rbenv version-name)" = "x$RUBY_VERSION" ]; then
|
58
|
-
echo "switched to ruby $RUBY_VERSION"
|
59
|
-
else
|
60
|
-
echo "failed to install ruby $RUBY_VERSION"
|
61
|
-
exit 1
|
62
|
-
fi
|
63
|
-
fi
|
64
|
-
|
65
|
-
echo `which ruby`
|
66
|
-
ruby -v
|
67
|
-
gem --version
|
68
|
-
|
69
|
-
# make sure that we're in the project root
|
70
|
-
script_dirname=`dirname $0`
|
71
|
-
cd "$script_dirname/../../"
|
72
|
-
pwd
|
73
|
-
|
74
|
-
rm -rf tmp
|
75
|
-
mkdir -p tmp
|
76
|
-
cd tmp
|
77
|
-
|
78
|
-
|
79
|
-
if [ "x$BRANCH" == "xnorails" ]; then
|
80
|
-
if [ "x$RUBY_VERSION" == "x1.8.6" ]; then
|
81
|
-
# Bundler 1.1 dropped support for ruby 1.8.6
|
82
|
-
bundle -h > /dev/null || gem install bundler -v'~>1.0.0' --no-rdoc --no-ri
|
83
|
-
else
|
84
|
-
bundle -h > /dev/null || gem install bundler --no-rdoc --no-ri
|
85
|
-
fi
|
86
|
-
|
87
|
-
bundle -v
|
88
|
-
bundle --local || bundle
|
89
|
-
NO_RAILS=true bundle exec rake --trace test || bundle exec rake --trace test
|
90
|
-
exit
|
91
|
-
fi
|
92
|
-
|
93
|
-
#rpm_test_app_cache=~/.rpm_test_app_cache
|
94
|
-
rpm_test_app_cache=~/workspace/.rpm_test_app_cache
|
95
|
-
(
|
96
|
-
echo "updating local cache of rpm_test_app in $rpm_test_app_cache"
|
97
|
-
git clone --mirror git://github.com/newrelic/rpm_test_app.git $rpm_test_app_cache || true
|
98
|
-
cd $rpm_test_app_cache
|
99
|
-
git fetch || true
|
100
|
-
)
|
4
|
+
unset MERB_ENV
|
5
|
+
unset RUBY_ENV
|
6
|
+
unset RACK_ENV
|
7
|
+
unset RAILS_ENV
|
101
8
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
echo "$RUBY_VERSION-$BRANCH" > .rbenv-gemsets
|
9
|
+
if [ "$TYPE" = "UNIT" ]; then
|
10
|
+
bundle exec rake test:env[$ENVIRONMENT]
|
11
|
+
elif [ "$TYPE" = "FUNCTIONAL" ]; then
|
12
|
+
bundle exec rake test:multiverse[group=$GROUP,verbose,nocache]
|
13
|
+
elif [ "$TYPE" = "NULLVERSE" ]; then
|
14
|
+
bundle exec rake test:nullverse
|
109
15
|
fi
|
110
|
-
|
111
|
-
# Re-write database.yml to this here doc
|
112
|
-
( cat << "YAML" ) > config/database.yml
|
113
|
-
# Shared properties for mysql db
|
114
|
-
mysql: &mysql
|
115
|
-
adapter: mysql
|
116
|
-
socket: <%= (`uname -s` =~ /Linux/ ) ? "" :"/tmp/mysql.sock" %>
|
117
|
-
username: root
|
118
|
-
host: localhost
|
119
|
-
database: <%= ENV['PROJECT_NAME'] %>
|
120
|
-
|
121
|
-
# Shared properties for postgres. This won't work with our schema but
|
122
|
-
# Does work with agent tests
|
123
|
-
sqlite3: &sqlite3
|
124
|
-
<% if defined?(JRuby) %>
|
125
|
-
adapter: jdbcsqlite3
|
126
|
-
<% else %>
|
127
|
-
adapter: sqlite3
|
128
|
-
<% end %>
|
129
|
-
database: db/all.sqlite3
|
130
|
-
pool: 5
|
131
|
-
timeout: 5000
|
132
|
-
host: localhost
|
133
|
-
|
134
|
-
# SQLite version 3.x
|
135
|
-
# gem install sqlite3-ruby (not necessary on OS X Leopard)
|
136
|
-
development:
|
137
|
-
<<: *sqlite3
|
138
|
-
|
139
|
-
test:
|
140
|
-
<<: *mysql
|
141
|
-
|
142
|
-
production:
|
143
|
-
<<: *mysql
|
144
|
-
YAML
|
145
|
-
|
146
|
-
|
147
|
-
mkdir -p log
|
148
|
-
mkdir -p tmp
|
149
|
-
if [ "x$BRANCH" == "xrails20" ]; then
|
150
|
-
echo "Warning: Rails 2.0 support in progress. This probably only works in CI"
|
151
|
-
mkdir -p vendor/plugins
|
152
|
-
GEM=`ls ../../../*.gem | tail -n1`
|
153
|
-
(cd vendor/plugins && gem unpack ../../$GEM)
|
154
|
-
mv vendor/plugins/newrelic_rpm* vendor/plugins/newrelic_rpm
|
155
|
-
else
|
156
|
-
perl -p -i'.bak' -e 's#gem .newrelic_rpm.*$#gem "newrelic_rpm", :path => "\.\.\/\.\.\/"#' Gemfile
|
157
|
-
fi
|
158
|
-
|
159
|
-
if [ "x$RUBY_VERSION" == "x1.8.6" ]; then
|
160
|
-
# Bundler 1.1 dropped support for ruby 1.8.6
|
161
|
-
bundle -h > /dev/null || gem install bundler -v'~>1.0.0' --no-rdoc --no-ri
|
162
|
-
else
|
163
|
-
bundle -h > /dev/null || gem install bundler --no-rdoc --no-ri
|
164
|
-
fi
|
165
|
-
|
166
|
-
bundle -v
|
167
|
-
|
168
|
-
export RAILS_ENV=test
|
169
|
-
bundle --local || bundle
|
170
|
-
bundle exec rake --trace db:create:all test:newrelic
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz -O /tmp/mongodb.tgz
|
4
|
+
mkdir -p /tmp/mongodb/data
|
5
|
+
tar -xvf /tmp/mongodb.tgz -C /tmp/mongodb
|
6
|
+
/tmp/mongodb/mongodb-linux-x86_64-${MONGODB}/bin/mongod --dbpath /tmp/mongodb/data --bind_ip 127.0.0.1 --noauth &> /dev/null &
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.14.
|
4
|
+
version: 3.14.2.312
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Krajcar
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|
@@ -269,6 +269,7 @@ files:
|
|
269
269
|
- lib/new_relic/agent/error_collector.rb
|
270
270
|
- lib/new_relic/agent/error_event_aggregator.rb
|
271
271
|
- lib/new_relic/agent/error_trace_aggregator.rb
|
272
|
+
- lib/new_relic/agent/event_aggregator.rb
|
272
273
|
- lib/new_relic/agent/event_buffer.rb
|
273
274
|
- lib/new_relic/agent/event_listener.rb
|
274
275
|
- lib/new_relic/agent/event_loop.rb
|
@@ -375,6 +376,7 @@ files:
|
|
375
376
|
- lib/new_relic/agent/stats_engine/samplers.rb
|
376
377
|
- lib/new_relic/agent/stats_engine/stats_hash.rb
|
377
378
|
- lib/new_relic/agent/supported_versions.rb
|
379
|
+
- lib/new_relic/agent/synthetics_event_aggregator.rb
|
378
380
|
- lib/new_relic/agent/synthetics_event_buffer.rb
|
379
381
|
- lib/new_relic/agent/synthetics_monitor.rb
|
380
382
|
- lib/new_relic/agent/system_info.rb
|
@@ -393,12 +395,16 @@ files:
|
|
393
395
|
- lib/new_relic/agent/transaction/trace_node.rb
|
394
396
|
- lib/new_relic/agent/transaction/transaction_sample_buffer.rb
|
395
397
|
- lib/new_relic/agent/transaction/xray_sample_buffer.rb
|
398
|
+
- lib/new_relic/agent/transaction_error_primitive.rb
|
396
399
|
- lib/new_relic/agent/transaction_event_aggregator.rb
|
400
|
+
- lib/new_relic/agent/transaction_event_primitive.rb
|
401
|
+
- lib/new_relic/agent/transaction_event_recorder.rb
|
397
402
|
- lib/new_relic/agent/transaction_metrics.rb
|
398
403
|
- lib/new_relic/agent/transaction_sample_builder.rb
|
399
404
|
- lib/new_relic/agent/transaction_sampler.rb
|
400
405
|
- lib/new_relic/agent/transaction_state.rb
|
401
406
|
- lib/new_relic/agent/transaction_timings.rb
|
407
|
+
- lib/new_relic/agent/transction_event_recorder.rb
|
402
408
|
- lib/new_relic/agent/utilization_data.rb
|
403
409
|
- lib/new_relic/agent/vm.rb
|
404
410
|
- lib/new_relic/agent/vm/jruby_vm.rb
|
@@ -464,6 +470,8 @@ files:
|
|
464
470
|
- lib/tasks/newrelic.rb
|
465
471
|
- lib/tasks/tests.rake
|
466
472
|
- lib/tasks/versions.html.erb
|
473
|
+
- lib/tasks/versions.postface.html
|
474
|
+
- lib/tasks/versions.preface.html
|
467
475
|
- lib/tasks/versions.rake
|
468
476
|
- lib/tasks/versions.txt.erb
|
469
477
|
- newrelic.yml
|
@@ -783,6 +791,7 @@ files:
|
|
783
791
|
- test/multiverse/suites/agent_only/synthetics_test.rb
|
784
792
|
- test/multiverse/suites/agent_only/testing_app.rb
|
785
793
|
- test/multiverse/suites/agent_only/thread_profiling_test.rb
|
794
|
+
- test/multiverse/suites/agent_only/transaction_events_test.rb
|
786
795
|
- test/multiverse/suites/agent_only/transaction_ignoring_test.rb
|
787
796
|
- test/multiverse/suites/agent_only/utilization_data_collection_test.rb
|
788
797
|
- test/multiverse/suites/agent_only/xray_sessions_test.rb
|
@@ -866,6 +875,7 @@ files:
|
|
866
875
|
- test/multiverse/suites/rack/Envfile
|
867
876
|
- test/multiverse/suites/rack/before_suite.rb
|
868
877
|
- test/multiverse/suites/rack/builder_map_test.rb
|
878
|
+
- test/multiverse/suites/rack/config/newrelic.yml
|
869
879
|
- test/multiverse/suites/rack/example_app.rb
|
870
880
|
- test/multiverse/suites/rack/http_response_code_test.rb
|
871
881
|
- test/multiverse/suites/rack/nested_non_rack_app_test.rb
|
@@ -940,6 +950,7 @@ files:
|
|
940
950
|
- test/multiverse/suites/sidekiq/log/.gitkeep
|
941
951
|
- test/multiverse/suites/sidekiq/sidekiq_instrumentation_test.rb
|
942
952
|
- test/multiverse/suites/sidekiq/sidekiq_server.rb
|
953
|
+
- test/multiverse/suites/sidekiq/test_model.rb
|
943
954
|
- test/multiverse/suites/sidekiq/test_worker.rb
|
944
955
|
- test/multiverse/suites/sinatra/Envfile
|
945
956
|
- test/multiverse/suites/sinatra/config/newrelic.yml
|
@@ -1017,6 +1028,7 @@ files:
|
|
1017
1028
|
- test/new_relic/agent/error_collector_test.rb
|
1018
1029
|
- test/new_relic/agent/error_event_aggregator_test.rb
|
1019
1030
|
- test/new_relic/agent/error_trace_aggregator_test.rb
|
1031
|
+
- test/new_relic/agent/event_aggregator_test.rb
|
1020
1032
|
- test/new_relic/agent/event_buffer_test_cases.rb
|
1021
1033
|
- test/new_relic/agent/event_listener_test.rb
|
1022
1034
|
- test/new_relic/agent/event_loop_test.rb
|
@@ -1073,6 +1085,7 @@ files:
|
|
1073
1085
|
- test/new_relic/agent/stats_engine/stats_hash_test.rb
|
1074
1086
|
- test/new_relic/agent/stats_engine_test.rb
|
1075
1087
|
- test/new_relic/agent/stats_test.rb
|
1088
|
+
- test/new_relic/agent/synthetics_event_aggregator_test.rb
|
1076
1089
|
- test/new_relic/agent/synthetics_event_buffer_test.rb
|
1077
1090
|
- test/new_relic/agent/synthetics_monitor_test.rb
|
1078
1091
|
- test/new_relic/agent/system_info_test.rb
|
@@ -1091,7 +1104,10 @@ files:
|
|
1091
1104
|
- test/new_relic/agent/transaction/trace_node_test.rb
|
1092
1105
|
- test/new_relic/agent/transaction/trace_test.rb
|
1093
1106
|
- test/new_relic/agent/transaction/xray_sample_buffer_test.rb
|
1107
|
+
- test/new_relic/agent/transaction_error_primitive_test.rb
|
1094
1108
|
- test/new_relic/agent/transaction_event_aggregator_test.rb
|
1109
|
+
- test/new_relic/agent/transaction_event_primitive_test.rb
|
1110
|
+
- test/new_relic/agent/transaction_event_recorder_test.rb
|
1095
1111
|
- test/new_relic/agent/transaction_interrobang_test.rb
|
1096
1112
|
- test/new_relic/agent/transaction_metrics_test.rb
|
1097
1113
|
- test/new_relic/agent/transaction_sample_builder_test.rb
|
@@ -1151,6 +1167,8 @@ files:
|
|
1151
1167
|
- test/new_relic/rack/error_collector_test.rb
|
1152
1168
|
- test/new_relic/transaction_ignoring_test_cases.rb
|
1153
1169
|
- test/new_relic/version_number_test.rb
|
1170
|
+
- test/nullverse/default_source_require_test.rb
|
1171
|
+
- test/nullverse/nullverse_helper.rb
|
1154
1172
|
- test/performance/README.md
|
1155
1173
|
- test/performance/lib/performance.rb
|
1156
1174
|
- test/performance/lib/performance/baseline.rb
|
@@ -1191,11 +1209,8 @@ files:
|
|
1191
1209
|
- test/performance/suites/thread_profiling.rb
|
1192
1210
|
- test/performance/suites/trace_execution_scoped.rb
|
1193
1211
|
- test/performance/suites/transaction_tracing.rb
|
1194
|
-
- test/script/build_test_gem.sh
|
1195
1212
|
- test/script/ci.sh
|
1196
|
-
- test/script/
|
1197
|
-
- test/script/ci_bench.sh
|
1198
|
-
- test/script/ci_multiverse_runner.sh
|
1213
|
+
- test/script/install_mongodb.sh
|
1199
1214
|
- test/script/path_hash.rb
|
1200
1215
|
- test/test_helper.rb
|
1201
1216
|
- ui/helpers/developer_mode_helper.rb
|
@@ -1,57 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
# print commands in this script as they're invoked
|
4
|
-
#set -x
|
5
|
-
# fail if any command fails
|
6
|
-
set -e
|
7
|
-
|
8
|
-
. "$HOME/.rvm/scripts/rvm"
|
9
|
-
|
10
|
-
#rvm 1.9.3
|
11
|
-
|
12
|
-
|
13
|
-
if [ "x$BUILD_NUMBER" == "x" ]; then
|
14
|
-
echo '$BUILD_NUMBER is undefined'
|
15
|
-
echo 'setting $BUILD_NUMBER to alpha'
|
16
|
-
BUILD_NUMBER=alpha
|
17
|
-
fi
|
18
|
-
|
19
|
-
SHA1=`git log --pretty=format:'%h' -n 1`
|
20
|
-
echo "building gem for commit $SHA1"
|
21
|
-
|
22
|
-
if [[ `gem list jeweler | grep [j]eweler | wc -l` -eq 1 ]]; then
|
23
|
-
echo "detected jeweler. skipping install"
|
24
|
-
else
|
25
|
-
gem install jeweler --no-ri --no-rdoc
|
26
|
-
fi
|
27
|
-
|
28
|
-
# setup a gems directory as a work area for artifacts
|
29
|
-
rm -rf gems/
|
30
|
-
mkdir gems
|
31
|
-
|
32
|
-
# an identifier including the hudson build number and the git sha1
|
33
|
-
|
34
|
-
# FIXME: don't include the $SHA1 since some of our builds systems are confused
|
35
|
-
# by this.
|
36
|
-
#BUILD_ID="$SHA1.$BUILD_NUMBER" #.$SHA1
|
37
|
-
BUILD_ID="$BUILD_NUMBER" #.$SHA1
|
38
|
-
|
39
|
-
# rewrite the version file, setting the patch identifier to include the
|
40
|
-
# BUILD_ID
|
41
|
-
perl -p -i -e "s#BUILD *= *.*\$#BUILD = '$BUILD_ID'#" lib/new_relic/version.rb
|
42
|
-
|
43
|
-
# generate the gemspec
|
44
|
-
rake gemspec
|
45
|
-
|
46
|
-
# build the gem
|
47
|
-
gem build *.gemspec
|
48
|
-
|
49
|
-
# move artifacts to the gems directory
|
50
|
-
cp *.gemspec gems/
|
51
|
-
mv *.gem gems/
|
52
|
-
|
53
|
-
cd gems
|
54
|
-
|
55
|
-
# create a tarfile including the gem and the gemspec
|
56
|
-
gem_version=`ls *.gem | sed 's/\.gem$//' | sed 's/newrelic_rpm-//'`
|
57
|
-
tar czvf newrelic_rpm_agent-${gem_version}.tar.gz *
|