diff --git a/sig/datadog/ci/contrib/minitest/test_helper.rbs b/sig/datadog/ci/contrib/minitest/hooks.rbs similarity index 91% rename from sig/datadog/ci/contrib/minitest/test_helper.rbs rename to sig/datadog/ci/contrib/minitest/hooks.rbs index 7fe6416a..4c1b2710 100644 --- a/sig/datadog/ci/contrib/minitest/test_helper.rbs +++ b/sig/datadog/ci/contrib/minitest/hooks.rbs @@ -2,7 +2,7 @@ module Datadog module CI module Contrib module Minitest - module TestHelper + module Hooks def before_setup: () -> (nil | untyped) def after_teardown: () -> untyped diff --git a/sig/datadog/ci/contrib/rspec/example.rbs b/sig/datadog/ci/contrib/rspec/example.rbs index 6c74a586..372e35e2 100644 --- a/sig/datadog/ci/contrib/rspec/example.rbs +++ b/sig/datadog/ci/contrib/rspec/example.rbs @@ -5,6 +5,8 @@ module Datadog module Example def self.included: (untyped base) -> untyped module InstanceMethods + include ::RSpec::Core::Example + def run: (untyped example_group_instance, untyped reporter) -> untyped private diff --git a/sig/datadog/ci/ext/app_types.rbs b/sig/datadog/ci/ext/app_types.rbs index 980d58dc..8188d06c 100644 --- a/sig/datadog/ci/ext/app_types.rbs +++ b/sig/datadog/ci/ext/app_types.rbs @@ -2,7 +2,7 @@ module Datadog module CI module Ext module AppTypes - TYPE_TEST: "test" + TYPE_TEST: String end end end diff --git a/vendor/rbs/ddtrace/0/datadog/tracing.rbs b/vendor/rbs/ddtrace/0/datadog/tracing.rbs index 01977589..778750c1 100644 --- a/vendor/rbs/ddtrace/0/datadog/tracing.rbs +++ b/vendor/rbs/ddtrace/0/datadog/tracing.rbs @@ -1,5 +1,6 @@ module Datadog module Tracing def self.active_trace: () -> Datadog::Tracing::TraceSegment + def self.trace: (String span_name, Hash[untyped, untyped] options) ?{ (untyped span, untyped trace) -> untyped } -> Datadog::Tracing::SpanOperation end end diff --git a/vendor/rbs/ddtrace/0/datadog/tracing/event.rbs b/vendor/rbs/ddtrace/0/datadog/tracing/event.rbs new file mode 100644 index 00000000..3d3889ab --- /dev/null +++ b/vendor/rbs/ddtrace/0/datadog/tracing/event.rbs @@ -0,0 +1,25 @@ +module Datadog + module Tracing + module Events + def self.included: (untyped base) -> untyped + + module ClassMethods + def build: (**untyped event_handlers) -> untyped + end + + module InstanceMethods + def subscribe: (**untyped event_handlers) -> (nil | untyped) + end + end + + class Event + attr_reader name: untyped + attr_reader subscriptions: untyped + + def initialize: (untyped name) -> void + def subscribe: () ?{ () -> untyped } -> untyped + def unsubscribe_all!: () -> true + def publish: (*untyped args) -> true + end + end +end diff --git a/vendor/rbs/ddtrace/0/datadog/tracing/span_operation.rbs b/vendor/rbs/ddtrace/0/datadog/tracing/span_operation.rbs new file mode 100644 index 00000000..11f3c61d --- /dev/null +++ b/vendor/rbs/ddtrace/0/datadog/tracing/span_operation.rbs @@ -0,0 +1,135 @@ +module Datadog + module Tracing + class SpanOperation + include Metadata + include Metadata::Tagging + include Metadata::Errors + prepend Metadata::Analytics + + attr_reader end_time: untyped + + attr_reader id: untyped + + attr_reader name: untyped + + attr_reader parent_id: untyped + + attr_reader resource: untyped + + attr_reader service: untyped + + attr_reader start_time: untyped + + attr_reader trace_id: untyped + + attr_reader type: untyped + + attr_accessor status: untyped + + def initialize: (untyped name, ?child_of: untyped?, ?events: untyped?, ?on_error: untyped?, ?parent_id: ::Integer, ?resource: untyped, ?service: untyped?, ?start_time: untyped?, ?tags: untyped?, ?trace_id: untyped?, ?type: untyped?) -> void + + def name=: (untyped name) -> untyped + + def type=: (untyped `type`) -> untyped + + def service=: (untyped service) -> untyped + + def resource=: (untyped resource) -> untyped + + def measure: () { (untyped) -> untyped } -> untyped + + def start: (?untyped? start_time) -> self + + def stop: (?untyped? stop_time) -> (nil | self) + + def started?: () -> untyped + + def stopped?: () -> untyped + + def start_time=: (untyped time) -> untyped + + def end_time=: (untyped time) -> untyped + + def finish: (?untyped? end_time) -> untyped + + def finished?: () -> untyped + + def duration: () -> untyped + + def set_error: (untyped e) -> untyped + + def to_s: () -> ::String + + def to_hash: () -> untyped + + def pretty_print: (untyped q) -> untyped + + class Events + include Tracing::Events + + DEFAULT_ON_ERROR: untyped + + attr_reader after_finish: untyped + + attr_reader after_stop: untyped + + attr_reader before_start: untyped + + def initialize: (?on_error: untyped?) -> void + + def on_error: () -> untyped + + class AfterFinish < Tracing::Event + def initialize: () -> void + end + + class AfterStop < Tracing::Event + def initialize: () -> void + end + + class BeforeStart < Tracing::Event + def initialize: () -> void + end + + class OnError + def initialize: (untyped default) -> void + + def wrap_default: () { (untyped, untyped) -> untyped } -> untyped + + def publish: (*untyped args) -> true + end + end + + class AlreadyStartedError < StandardError + def message: () -> "Cannot measure an already started span!" + end + + private + + attr_reader events: untyped + + attr_reader parent: untyped + + attr_reader span: untyped + + module RefineNil + end + + def build_span: () -> untyped + + def parent=: (untyped parent) -> untyped + + def duration_marker: () -> untyped + + def start_time_nano: () -> untyped + + def duration_nano: () -> untyped + + alias span_id id + + alias span_type type + + alias span_type= type= + end + end +end diff --git a/vendor/rbs/rspec/0/rspec.rbs b/vendor/rbs/rspec/0/rspec.rbs index 78421f40..e97f05f6 100644 --- a/vendor/rbs/rspec/0/rspec.rbs +++ b/vendor/rbs/rspec/0/rspec.rbs @@ -1,8 +1,13 @@ -class RSpec +module RSpec end -class RSpec::Core +module RSpec::Core end -class RSpec::Core::Example +module RSpec::Core::Example + def run: () -> untyped + def execution_result: () -> untyped + def metadata: () -> untyped + def description: () -> String + def full_description: () -> String end