Navigation Menu

Skip to content

Commit

Permalink
Add license header to source files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Goldstein committed Feb 22, 2013
1 parent 320a8bf commit 304fef1
Show file tree
Hide file tree
Showing 315 changed files with 1,256 additions and 3 deletions.
4 changes: 4 additions & 0 deletions init.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

# This is the initialization for the New Relic Ruby Agent when used as
# a plugin
require 'new_relic/control'
Expand Down
4 changes: 4 additions & 0 deletions install.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

if __FILE__ == $0 || $0 =~ /script\/plugin/
$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
require 'new_relic/command'
Expand Down
4 changes: 4 additions & 0 deletions lib/conditional_vendored_dependency_detection.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

path = File.expand_path('../vendor/gems/dependency_detection-0.0.1.build/lib', File.dirname(__FILE__))
$LOAD_PATH << path unless $LOAD_PATH.include?(path)
require 'dependency_detection'
4 changes: 4 additions & 0 deletions lib/conditional_vendored_metric_parser.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

unless defined?(NewRelic) && defined?(NewRelic::MetricParser)
vendored_metric_parser = File.expand_path('../../vendor/gems/metric_parser-0.1.0.pre1/lib/', __FILE__)
$:.unshift vendored_metric_parser unless $:.include?(vendored_metric_parser)
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'forwardable'
require 'new_relic/control'

Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/agent.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'socket'
require 'net/https'
require 'net/http'
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/agent_logger.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'logger'

module NewRelic
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/audit_logger.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'logger'
require 'fileutils'

Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/beacon_configuration.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
# This class contains the configuration data for setting up RUM
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/browser_monitoring.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'base64'
require 'new_relic/agent/beacon_configuration'
module NewRelic
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/busy_calculator.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
# This module supports calculation of actual time spent processing requests over the course of
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/chained_call.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

# This class is used by NewRelic::Agent.set_sql_obfuscator to chain multiple
# obfuscation blocks when not using the default :replace action
class NewRelic::ChainedCall
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/configuration.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/agent/configuration/manager'

# The agent's configuration is accessed through a configuration object exposed
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/configuration/defaults.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
module Configuration
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/configuration/environment_source.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
module Configuration
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/configuration/manager.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'forwardable'
require 'new_relic/agent/configuration/defaults'
require 'new_relic/agent/configuration/mask_defaults'
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/configuration/mask_defaults.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
module Configuration
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/configuration/server_source.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
module Configuration
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/configuration/yaml_source.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/agent/configuration'

module NewRelic
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/cross_app_monitor.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/rack/agent_hooks'
require 'new_relic/agent/thread'

Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/database.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'singleton'

module NewRelic
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/error_collector.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
# This class collects errors from the parent application, storing
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/event_listener.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic::Agent
# Basic mechanism for the agent instance to provide agent-wide eventing.
# It is intended to keep different pieces of the app decoupled from each other.
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/agent'
module NewRelic
module Agent
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/active_merchant.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

DependencyDetection.defer do
@name = :active_merchant

Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/active_record.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
module Instrumentation
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/acts_as_solr.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Instrumentation
module ActsAsSolrInstrumentation
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/authlogic.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

DependencyDetection.defer do
@name = :authlogic

Expand Down
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
module Instrumentation
Expand Down
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/agent/instrumentation/metric_frame'
require 'new_relic/agent/instrumentation/queue_time'
module NewRelic
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/data_mapper.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

## NewRelic instrumentation for DataMapper
#
# Instrumenting DM has different key challenges versus AR:
Expand Down
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/agent/instrumentation/controller_instrumentation'

DependencyDetection.defer do
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/memcache.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

# NOTE there are multiple implementations of the MemCache client in Ruby,
# each with slightly different API's and semantics.
# See:
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/merb/controller.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'set'

DependencyDetection.defer do
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/merb/errors.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

DependencyDetection.defer do
@name = :merb_error

Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/metric_frame.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/agent/instrumentation/metric_frame/pop'

# A struct holding the information required to measure a controller
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/metric_frame/pop.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/agent/instrumentation'
module NewRelic
module Agent
Expand Down
3 changes: 3 additions & 0 deletions lib/new_relic/agent/instrumentation/net.rb
@@ -1,4 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.


DependencyDetection.defer do
@name = :net
Expand Down
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

DependencyDetection.defer do
@name = :passenger

Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/queue_time.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
module Instrumentation
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/rack.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/agent/instrumentation/controller_instrumentation'

module NewRelic
Expand Down
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

DependencyDetection.defer do
@name = :rails21_view

Expand Down
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

DependencyDetection.defer do
@name = :rails_action_web_service

Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/rails/errors.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

DependencyDetection.defer do
@name = :rails2_error

Expand Down
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
module Instrumentation
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/rails3/errors.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

module NewRelic
module Agent
module Instrumentation
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/resque.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

DependencyDetection.defer do
@name = :resque

Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/sinatra.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/agent/instrumentation/controller_instrumentation'

DependencyDetection.defer do
Expand Down
4 changes: 4 additions & 0 deletions lib/new_relic/agent/instrumentation/sunspot.rb
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

DependencyDetection.defer do
@name = :sunspot

Expand Down
@@ -1,3 +1,7 @@
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

DependencyDetection.defer do
@name = :unicorn

Expand Down

0 comments on commit 304fef1

Please sign in to comment.