-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add signature file for Trilogy integration
- Loading branch information
Showing
5 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
sig/datadog/tracing/contrib/trilogy/configuration/settings.rbs
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,12 @@ | ||
module Datadog | ||
module Tracing | ||
module Contrib | ||
module Trilogy | ||
module Configuration | ||
class Settings < Contrib::Configuration::Settings | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module Datadog | ||
module Tracing | ||
module Contrib | ||
module Trilogy | ||
module Ext | ||
ENV_ENABLED: "DD_TRACE_TRILOGY_ENABLED" | ||
|
||
ENV_SERVICE_NAME: "DD_TRACE_TRILOGY_SERVICE_NAME" | ||
|
||
ENV_PEER_SERVICE: "DD_TRACE_TRILOGY_PEER_SERVICE" | ||
|
||
ENV_ANALYTICS_ENABLED: "DD_TRACE_TRILOGY_ANALYTICS_ENABLED" | ||
|
||
ENV_ANALYTICS_SAMPLE_RATE: "DD_TRACE_TRILOGY_ANALYTICS_SAMPLE_RATE" | ||
|
||
DEFAULT_PEER_SERVICE_NAME: "trilogy" | ||
|
||
SPAN_QUERY: "trilogy.query" | ||
|
||
TAG_DB_NAME: "trilogy.db.name" | ||
|
||
TAG_COMPONENT: "trilogy" | ||
|
||
TAG_OPERATION_QUERY: "query" | ||
|
||
TAG_SYSTEM: "mysql" | ||
|
||
PEER_SERVICE_SOURCES: untyped | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module Datadog | ||
module Tracing | ||
module Contrib | ||
module Trilogy | ||
module Instrumentation | ||
def self.included: (untyped base) -> untyped | ||
module InstanceMethods | ||
def query: (untyped sql) -> untyped | ||
|
||
private | ||
|
||
def datadog_configuration: () -> untyped | ||
|
||
def analytics_enabled?: () -> untyped | ||
|
||
def analytics_sample_rate: () -> untyped | ||
|
||
def comment_propagation: () -> untyped | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module Datadog | ||
module Tracing | ||
module Contrib | ||
module Trilogy | ||
class Integration | ||
include Contrib::Integration | ||
|
||
MINIMUM_VERSION: untyped | ||
|
||
def self.version: () -> untyped | ||
|
||
def self.loaded?: () -> untyped | ||
|
||
def self.compatible?: () -> untyped | ||
|
||
def new_configuration: () -> untyped | ||
|
||
def patcher: () -> untyped | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module Datadog | ||
module Tracing | ||
module Contrib | ||
module Trilogy | ||
module Patcher | ||
include Contrib::Patcher | ||
|
||
def self?.target_version: () -> untyped | ||
|
||
def self?.patch: () -> untyped | ||
|
||
def self?.patch_trilogy_client: () -> untyped | ||
end | ||
end | ||
end | ||
end | ||
end |