-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored: Sequel to use Datadog::Contrib::Integration.
- Loading branch information
Showing
6 changed files
with
51 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require 'ddtrace/contrib/configuration/settings' | ||
|
||
module Datadog | ||
module Contrib | ||
module Sequel | ||
module Configuration | ||
class Settings < Contrib::Configuration::Settings | ||
# Add any custom Sequel settings or behavior here. | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
require 'ddtrace/contrib/integration' | ||
require 'ddtrace/contrib/sequel/configuration/settings' | ||
require 'ddtrace/contrib/sequel/patcher' | ||
|
||
module Datadog | ||
module Contrib | ||
module Sequel | ||
# Description of Sequel integration | ||
class Integration | ||
include Contrib::Integration | ||
|
||
APP = 'sequel'.freeze | ||
|
||
register_as :sequel, auto_patch: false | ||
|
||
def self.compatible? | ||
RUBY_VERSION >= '2.0.0' && defined?(::Sequel) | ||
end | ||
|
||
def default_configuration | ||
Configuration::Settings.new | ||
end | ||
|
||
def patcher | ||
Patcher | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters