diff --git a/lib/datadog/ci/auto_instrument.rb b/lib/datadog/ci/auto_instrument.rb new file mode 100644 index 00000000..9a241843 --- /dev/null +++ b/lib/datadog/ci/auto_instrument.rb @@ -0,0 +1,3 @@ +require "datadog/ci" + +Datadog::CI::Contrib::Instrumentation.auto_instrument diff --git a/lib/datadog/ci/contrib/instrumentation.rb b/lib/datadog/ci/contrib/instrumentation.rb index 53f6fdea..b4564913 100644 --- a/lib/datadog/ci/contrib/instrumentation.rb +++ b/lib/datadog/ci/contrib/instrumentation.rb @@ -41,7 +41,7 @@ def self.auto_instrument "Auto instrumentation was requested, but no available integrations were found. " \ "Tests will be run without Datadog instrumentation." ) - nil + return end script_compiled_tracepoint = TracePoint.new(:script_compiled) do diff --git a/sig/datadog/ci/contrib/instrumentation.rbs b/sig/datadog/ci/contrib/instrumentation.rbs index 1f511280..8d168107 100644 --- a/sig/datadog/ci/contrib/instrumentation.rbs +++ b/sig/datadog/ci/contrib/instrumentation.rbs @@ -9,6 +9,8 @@ module Datadog def self.registry: () -> Hash[Symbol, untyped] + def self.auto_instrument: () -> void + def self.instrument: (Symbol integration_name, ?::Hash[untyped, untyped] options) { (?) -> untyped } -> void def self.instrument_on_session_start: () -> void