Skip to content

Commit

Permalink
add datadog/ci/auto_instrument entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Nov 20, 2024
1 parent 8173920 commit 88a1837
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/datadog/ci/auto_instrument.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require "datadog/ci"

Datadog::CI::Contrib::Instrumentation.auto_instrument
2 changes: 1 addition & 1 deletion lib/datadog/ci/contrib/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions sig/datadog/ci/contrib/instrumentation.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88a1837

Please sign in to comment.