Skip to content

Commit

Permalink
Fix autoloading for backend InfluxDB instrumentation
Browse files Browse the repository at this point in the history
we should not mix require & autoload. The backend directory already gets autoloaded
which caused some weird autoloading errors which this PR will fix.
  • Loading branch information
ChrisBr committed Dec 11, 2018
1 parent 71a9688 commit b463fc0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/api/lib/backend/backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module Api

require 'benchmark'
require 'api_exception'
require_dependency 'remember_location'
require_dependency 'instrumentation'
require_dependency 'connection'
require_dependency 'connection_helper'
require_dependency 'error'
Expand Down
2 changes: 0 additions & 2 deletions src/api/lib/backend/connection_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'remember_location'

module Backend
# Module that holds the wrapping methods for http requests, are mainly used for simplify the calculation of urls.
#
Expand Down
2 changes: 0 additions & 2 deletions src/api/lib/backend/logger.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative 'instrumentation'

module Backend
# Class that implements a logger to write output in the backend logs
class Logger
Expand Down

0 comments on commit b463fc0

Please sign in to comment.