Skip to content

Commit

Permalink
Merge branch 'master' into nony--add-yjit-stats
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Jun 20, 2023
2 parents 1dafddd + f2b5a57 commit 857015b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/datadog/appsec/contrib/devise/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module Contrib
module Devise
# Devise integration constants
module Ext
APP = 'devise'
end
end
end
Expand Down
1 change: 0 additions & 1 deletion lib/datadog/appsec/contrib/rack/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module Contrib
module Rack
# Rack integration constants
module Ext
APP = 'rack'
end
end
end
Expand Down
3 changes: 1 addition & 2 deletions lib/datadog/appsec/contrib/rails/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ module Datadog
module AppSec
module Contrib
module Rails
# Rack integration constants
# Rails integration constants
module Ext
APP = 'rails'
end
end
end
Expand Down
1 change: 0 additions & 1 deletion lib/datadog/appsec/contrib/sinatra/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module Contrib
module Sinatra
# Sinatra integration constants
module Ext
APP = 'sinatra'
ROUTE_INTERRUPT = :datadog_appsec_contrib_sinatra_route_interrupt
end
end
Expand Down
7 changes: 6 additions & 1 deletion lib/datadog/profiling.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ def self.allocation_count # rubocop:disable Lint/DuplicateMethods, Lint/NestedMe
end
end

# All requires for the profiler should be directly added here; and everything should be loaded eagerly.
# (Currently there's a few exceptions for the old profiler, but we should avoid other exceptions.)
#
# All of the profiler should be loaded and ready to go when this method returns `true`.
private_class_method def self.load_profiling
return false unless supported?

Expand All @@ -197,7 +201,8 @@ def self.allocation_count # rubocop:disable Lint/DuplicateMethods, Lint/NestedMe
require_relative 'profiling/profiler'
require_relative 'profiling/native_extension'
require_relative 'profiling/trace_identifiers/helper'
# This file is loaded in Profiling::Component#load_pprof_support; see notes there for why
# This file is no longer eagerly loaded as a workaround for an issue. It only gets loaded dynamically if the old
# profiler is in use. See Profiling::Component#load_pprof_support for more details.
# require_relative 'profiling/pprof/pprof_pb'
require_relative 'profiling/tag_builder'
require_relative 'profiling/http_transport'
Expand Down

0 comments on commit 857015b

Please sign in to comment.