Skip to content

Commit

Permalink
Remove X-Ray
Browse files Browse the repository at this point in the history
  • Loading branch information
barrucadu committed Aug 29, 2019
1 parent 79f08e8 commit f16fd46
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 45 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Remove support for AWS X-Ray.

# 1.20.2

* Fix GdsApi::HTTPIntermittentServer errors no longer being filtered from
Expand Down
1 change: 0 additions & 1 deletion govuk_app_config.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = %w[lib]

spec.add_dependency "aws-xray-sdk", "~> 0.10.0"
spec.add_dependency "logstasher", ">= 1.2.2", "< 1.4.0"
spec.add_dependency "sentry-raven", ">= 2.7.1", "< 2.12.0"
spec.add_dependency "statsd-ruby", "~> 1.4.0"
Expand Down
1 change: 0 additions & 1 deletion lib/govuk_app_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# This require is deprecated and should be removed on next major version bump
# and should be required by applications directly.
require "govuk_app_config/govuk_unicorn"
require "govuk_app_config/govuk_xray"
require "govuk_app_config/configure"

if defined?(Rails)
Expand Down
35 changes: 0 additions & 35 deletions lib/govuk_app_config/govuk_xray.rb

This file was deleted.

8 changes: 0 additions & 8 deletions lib/govuk_app_config/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
module GovukAppConfig
class Railtie < Rails::Railtie
initializer('govuk_app_config') do |app|
GovukXRay.initialize(app) if Rails.env.production? && !ENV.has_key?("GOVUK_APP_CONFIG_DISABLE_XRAY")
end

config.before_initialize do
GovukLogging.configure if Rails.env.production?
end

config.after_initialize do
GovukXRay.start if Rails.env.production? && !ENV.has_key?("GOVUK_APP_CONFIG_DISABLE_XRAY")
end
end
end

0 comments on commit f16fd46

Please sign in to comment.