Skip to content

Commit a543dbd

Browse files
author
Maia Engeli
authored
Merge pull request #31 from librato/30_rename_add_apm
rename: AppOptics to AppOpticsAPM (module) appoptics to appoptics_apm (gem name and gem internals) with the exception of method aliases, email addresses,URIs, reference to the AppOptics dashboard etc.
2 parents 1d65803 + f189543 commit a543dbd

File tree

189 files changed

+3576
-3539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+3576
-3539
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cache:
88
rvm:
99
- 2.4.1
1010
- 2.3.1
11-
- 1.9.3 # once we don't support 1.9.3 anymore we can use "&." (safe navigation) and prepend (instead of alias)
11+
- 1.9.3
1212
# - jruby-9.0.5.0
1313

1414
gemfile:

CONFIG.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# AppOptics Gem Configuration
1+
# AppOpticsAPM Gem Configuration
22

33
## Environment Variables
44

5-
The following environment variables are detected by the appoptics gem and affect how the gem functions.
5+
The following environment variables are detected by the appoptics_apm gem and affect how the gem functions.
66

77
### General
88

99
Name | Description | Default
1010
---- | ----------- | -------
11-
`IGNORE_APPOPTICS_WARNING` | tells the appoptics gem to __not__ output the _missing AppOptics libraries_ message on stack initialization | `false`
12-
`APPOPTICS_GEM_VERBOSE` | sets the verbose flag (`AppOptics::Config[:verbose]`) early in the gem loading process which may output valuable information | `false`
11+
`APPOPTICS_SERVICE_KEY` | API token + service name combination, mandatory for metrics and traces to show in my.appoptics.com |
12+
`IGNORE_APPOPTICS_WARNING` | tells the appoptics_apm gem to __not__ output the _missing AppOpticsAPM libraries_ message on stack initialization | `false`
13+
`APPOPTICS_GEM_VERBOSE` | sets the verbose flag (`AppOpticsAPM::Config[:verbose]`) early in the gem loading process which may output valuable information | `false`
1314
`APPOPTICS_CUUID` | Allows specifying the customer ID via environment variable to override/bypass the value in `/etc/tracelytics.conf` | `nil`
1415

1516
# Related to Tests
@@ -25,8 +26,8 @@ Name | Description | Default
2526
`APPOPTICS_RABBITMQ_USERNAME` | username for the RabbitMQ connection | `guest`
2627
`APPOPTICS_RABBITMQ_PASSWORD` | password for the RabbitMQ connection | `guest`
2728

28-
## AppOptics::Config
29+
## AppOpticsAPM::Config
2930

30-
`AppOptics::Config` is a nested hash used by the appoptics gem to store preferences and switches.
31+
`AppOpticsAPM::Config` is a nested hash used by the appoptics_apm gem to store preferences and switches.
3132

32-
See [this Rails generator template file](https://github.com/tracelytics/oboe-ruby/blob/master/lib/rails/generators/appoptics/templates/appoptics_initializer.rb) for documentation on all of the supported values.
33+
See [this Rails generator template file](https://github.com/librato/ruby-appoptics/blob/master/lib/rails/generators/appoptics_apm/templates/appoptics_initializer.rb) for documentation on all of the supported values.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ RUN git clone https://github.com/rbenv/rbenv.git ~/.rbenv \
2929

3030
# install rubies to build our gem against
3131
RUN . ~/.profile \
32-
&& rbenv install 2.3.1 \
33-
&& rbenv install jruby-9.0.5.0
32+
&& rbenv install 2.3.1
33+
# && rbenv install jruby-9.0.5.0
3434

3535
# install swig 3.0.8
3636
RUN curl -SL http://kent.dl.sourceforge.net/project/swig/swig/swig-3.0.8/swig-3.0.8.tar.gz \

README.md

Lines changed: 55 additions & 69 deletions
Large diffs are not rendered by default.

Rakefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require 'fileutils'
55
require 'open-uri'
66
require 'bundler/setup'
77
require 'rake/testtask'
8-
require 'appoptics/test'
8+
require 'appoptics_apm/test'
99

1010
Rake::TestTask.new do |t|
1111
t.verbose = false
@@ -20,7 +20,7 @@ Rake::TestTask.new do |t|
2020
# Here we detect the Gemfile the tests are being run against
2121
# and load the appropriate tests.
2222
#
23-
case AppOptics::Test.gemfile
23+
case AppOpticsAPM::Test.gemfile
2424
when /delayed_job/
2525
require 'delayed/tasks'
2626
t.test_files = FileList['test/queues/delayed_job*_test.rb']
@@ -180,17 +180,17 @@ task :environment do
180180
ENV['APPOPTICS_GEM_VERBOSE'] = 'true'
181181

182182
Bundler.require(:default, :development)
183-
AppOptics::Config[:tracing_mode] = :always
184-
AppOptics::Test.load_extras
183+
AppOpticsAPM::Config[:tracing_mode] = :always
184+
AppOpticsAPM::Test.load_extras
185185

186-
if AppOptics::Test.gemfile?(:delayed_job)
186+
if AppOpticsAPM::Test.gemfile?(:delayed_job)
187187
require 'delayed/tasks'
188188
end
189189
end
190190

191191
task :console => :environment do
192192
ARGV.clear
193-
if AppOptics::Test.gemfile?(:delayed_job)
193+
if AppOpticsAPM::Test.gemfile?(:delayed_job)
194194
require './test/servers/delayed_job'
195195
end
196196
Pry.start

Vagrantfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- mode: ruby -*-
22
# vi: set ft=ruby :
33

4-
# This Vagrantfile creates a build machine for our appoptics gem.
4+
# This Vagrantfile creates a build machine for our appoptics_apm gem.
55
# Usage:
66
# $ vagrant up
77
# $ vagrant ssh
@@ -52,12 +52,12 @@ Vagrant.configure("2") do |config|
5252
#!/usr/bin/env bash
5353
cd /vagrant
5454
export RBENV_VERSION=jruby-9.0.5.0
55-
jruby -S gem build appoptics.gemspec
55+
jruby -S gem build appoptics_apm.gemspec
5656
5757
export RBENV_VERSION=2.3.1
58-
gem build appoptics.gemspec
58+
gem build appoptics_apm.gemspec
5959
60-
ls -la appoptics*.gem
60+
ls -la appoptics_apm*.gem
6161
6262
echo "publish to rubygems via: gem push <gem>"
6363
BUILDSCRIPT

appoptics.gemspec renamed to appoptics_apm.gemspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
$:.push File.expand_path("../lib", __FILE__)
2-
require "appoptics/version"
2+
require "appoptics_apm/version"
33

44
Gem::Specification.new do |s|
5-
s.name = %q{appoptics}
6-
s.version = AppOptics::Version::STRING
5+
s.name = %q{appoptics_apm}
6+
s.version = AppOpticsAPM::Version::STRING
77
s.date = Time.now.strftime('%Y-%m-%d')
88

99
s.license = "Librato Open License, Version 1.0"
1010

1111
s.authors = ["Maia Engeli", "Peter Giacomo Lombardo", "Spiros Eliopoulos"]
1212
s.email = %q{support@appoptics.com}
1313
s.homepage = %q{https://www.appoptics.com/}
14-
s.summary = %q{AppOptics performance instrumentation gem for Ruby}
15-
s.description = %q{The AppOptics gem provides performance instrumentation for MRI Ruby, JRuby and related frameworks.}
14+
s.summary = %q{AppOptics APM performance instrumentation gem for Ruby}
15+
s.description = %q{The AppOpticsAPM gem provides performance instrumentation for MRI Ruby, JRuby and related frameworks.}
1616

1717
s.extra_rdoc_files = ["LICENSE"]
1818
s.files = `git ls-files`.split("\n")

build_gems.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/usr/bin/env bash
2-
# builds the appoptics gem for JRuby and MRI.
2+
# builds the appoptics_apm gem for JRuby and MRI.
33

44
echo -e "\n=== building for MRI ===\n"
55
export RBENV_VERSION=2.3.1
66
rm -f Gemfile.lock
77
bundle install
88
bundle exec rake distclean
99
bundle exec rake fetch_ext_deps
10-
gem build appoptics.gemspec
10+
gem build appoptics_apm.gemspec
1111

1212
echo -e "\n=== built gems ===\n"
13-
ls -la appoptics*.gem
13+
ls -la appoptics_apm*.gem
1414

1515
echo -e "\n=== publish to rubygems via: gem push <gem> ===\n"

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version: "2"
77
# ('ruby_appoptics' and 'wait' will exit)
88
#
99
# to run some ruby tests:
10-
# > docker-compose run --service-ports ruby_appoptics /code/ruby-appoptics/ruby_setup.sh 2.3.1 gemfiles/rails42.gemfile
10+
# > docker-compose run --service-ports ruby_appoptics /code/ruby-appoptics_apm/ruby_setup.sh 2.3.1 gemfiles/rails42.gemfile
1111
#
1212
########################################################################################################
1313

@@ -21,7 +21,7 @@ services:
2121
cpu_quota: 100000 # 1 cpu, assumes cpu_period of 1 second
2222
mem_limit: 1G
2323
volumes:
24-
- .:/code/ruby-appoptics
24+
- .:/code/ruby-appoptics_apm
2525
depends_on:
2626
- wait
2727
links:

examples/DNT.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
By default, the AppOptics oboe gem will not trace routes with extensions
1+
By default, the AppOpticsAPM gem will not trace routes with extensions
22
for common static files. Examples of such files may be images,
33
javascript, pdfs and text files.
44

55
This is done by using the regular expression stored in
6-
`AppOptics::Config[:dnt_regexp]`:
6+
`AppOpticsAPM::Config[:dnt_regexp]`:
77

88
.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|js|flv|swf|ttf|woff|svg|less)$
99

@@ -14,7 +14,7 @@ To replace the pattern in use, you can update this regular expression
1414
string. Here are some examples.
1515

1616
If you prefer that you want your javascript and CSS files instrumented,
17-
you can update `AppOptics::Config[:dnt_regexp]` with an updated regexp
17+
you can update `AppOpticsAPM::Config[:dnt_regexp]` with an updated regexp
1818
pattern (without the "js" and "css" entries):
1919

2020
.(jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|pdf|txt|tar|wav|bmp|rtf|flv|swf|ttf|woff|svg|less)$
@@ -26,7 +26,7 @@ regexp [negative
2626
look-behind](http://www.regular-expressions.info/lookaround.html) that
2727
isn't supported in Ruby 1.8):
2828

29-
AppOptics::Config[:dnt_regexp] = "(\.js$)(?<!show.js)"
29+
AppOpticsAPM::Config[:dnt_regexp] = "(\.js$)(?<!show.js)"
3030

3131
Since this pattern is used with the standard Ruby Regexp class, you can
3232
use any Regexp supported pattern. See the documentation on Ruby Regexp

0 commit comments

Comments
 (0)