-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c96229
commit ae22958
Showing
20 changed files
with
415 additions
and
53 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
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
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
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,6 @@ | ||
module Datadog | ||
module Core | ||
end | ||
|
||
extend Core::Configuration | ||
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,11 @@ | ||
module Datadog | ||
module Core | ||
module Configuration | ||
def tracer: () -> Datadog::Tracing::Tracer | ||
|
||
def logger: () -> Datadog::Core::Logger | ||
|
||
def configuration: () -> untyped # The DSL methods have to be explicitly declared for this to be typed | ||
end | ||
end | ||
end |
47 changes: 47 additions & 0 deletions
47
vendor/rbs/ddtrace/0/datadog/core/configuration/components.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,47 @@ | ||
module Datadog | ||
module Core | ||
module Configuration | ||
class Components | ||
def self.build_health_metrics: (untyped settings) -> untyped | ||
|
||
def self.build_logger: (untyped settings) -> untyped | ||
|
||
def self.build_runtime_metrics: (untyped settings) -> untyped | ||
|
||
def self.build_runtime_metrics_worker: (untyped settings) -> untyped | ||
|
||
def self.build_tracer: (untyped settings, untyped agent_settings) -> untyped | ||
|
||
def self.build_telemetry: (untyped settings) -> untyped | ||
|
||
private | ||
|
||
def self.build_tracer_tags: (untyped settings) -> untyped | ||
|
||
def self.build_tracer_options: (untyped settings, untyped agent_settings) -> untyped | ||
|
||
def self.build_tracer_test_mode_options: (untyped tracer_options, untyped settings, untyped agent_settings) -> untyped | ||
|
||
public | ||
|
||
attr_reader health_metrics: untyped | ||
|
||
attr_reader logger: untyped | ||
|
||
attr_reader profiler: untyped | ||
|
||
attr_reader runtime_metrics: untyped | ||
|
||
attr_reader tracer: untyped | ||
|
||
attr_reader remote: Datadog::Core::Remote::Component | ||
|
||
def initialize: (untyped settings) -> untyped | ||
|
||
def startup!: (untyped settings) -> untyped | ||
|
||
def shutdown!: (?untyped? replacement) -> untyped | ||
end | ||
end | ||
end | ||
end |
67 changes: 67 additions & 0 deletions
67
vendor/rbs/ddtrace/0/datadog/core/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,67 @@ | ||
module Datadog | ||
module Core | ||
module Configuration | ||
class Settings | ||
include Base | ||
|
||
interface _Remote | ||
def enabled: () -> bool | ||
|
||
def enabled=: (bool) -> void | ||
|
||
def poll_interval_seconds: () -> ::Float | ||
|
||
def poll_interval_seconds=: (::Float) -> void | ||
|
||
def service: () -> ::String? | ||
|
||
def service=: (::String) -> void | ||
end | ||
|
||
interface _AppSec | ||
def enabled: () -> bool | ||
|
||
def enabled=: (bool) -> void | ||
|
||
def trace_rate_limit: () -> Integer | ||
|
||
def trace_rate_limit=: (Integer) -> void | ||
|
||
def obfuscator_key_regex: () -> String | ||
|
||
def obfuscator_key_regex=: (String) -> void | ||
|
||
def obfuscator_value_regex: () -> String | ||
|
||
def obfuscator_value_regex=: (String) -> void | ||
|
||
def waf_debug: () -> bool | ||
|
||
def waf_debug=: (bool) -> void | ||
|
||
def ruleset: () -> (String | Symbol | File | StringIO | ::Hash[untyped, untyped]) | ||
|
||
def ruleset=: (String | Symbol | File | StringIO | ::Hash[untyped, untyped]) -> void | ||
|
||
def using_default?: (Symbol option) -> bool | ||
end | ||
|
||
def initialize: (*untyped _) -> untyped | ||
|
||
def env: -> String | ||
|
||
def service: -> String | ||
|
||
def version: -> String? | ||
|
||
def logger=: (untyped logger) -> untyped | ||
|
||
def runtime_metrics: (?untyped? options) -> untyped | ||
|
||
def appsec: (?untyped? options) -> Datadog::Core::Configuration::Settings::_AppSec | ||
|
||
def remote: (?untyped? options) -> Datadog::Core::Configuration::Settings::_Remote | ||
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,13 @@ | ||
module Datadog | ||
module Core | ||
class Logger < ::Logger | ||
PREFIX: ::String | ||
|
||
def initialize: (*untyped args) ?{ () -> untyped } -> void | ||
|
||
def add: (untyped severity, ?untyped? message, ?untyped? progname) { () -> untyped } -> untyped | ||
|
||
alias log add | ||
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,42 @@ | ||
module Datadog | ||
module Core | ||
module Remote | ||
class Component | ||
BARRIER_TIMEOUT: Barrier::timeout_s | ||
|
||
attr_reader client: Datadog::Core::Remote::Client | ||
attr_reader worker: Datadog::Core::Remote::Worker | ||
|
||
@barrier: Barrier | ||
|
||
def initialize: (untyped settings, Datadog::Core::Remote::Client::Capabilities capabilities, Datadog::Core::Configuration::AgentSettingsResolver::AgentSettings agent_settings) -> void | ||
|
||
def start: -> void | ||
|
||
def started?: -> bool | ||
|
||
def sync: () -> void | ||
|
||
def shutdown!: () -> void | ||
|
||
def self.build: (untyped settings, Datadog::Core::Configuration::AgentSettingsResolver::AgentSettings agent_settings) -> Datadog::Core::Remote::Component? | ||
|
||
class Barrier | ||
type timeout_s = ::Integer | ::Float | ||
|
||
@once: bool | ||
@timeout: timeout_s? | ||
|
||
@mutex: ::Thread::Mutex | ||
@condition: ::Thread::ConditionVariable | ||
|
||
def initialize: (?timeout_s? timeout) -> void | ||
|
||
def wait_once: (?timeout_s? timeout) -> void | ||
def wait_next: (?timeout_s? timeout) -> void | ||
def lift: () -> void | ||
end | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.