Method: Datadog::DI.code_tracking_active?

Defined in:
lib/datadog/di/base.rb

.code_tracking_active?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns whether code tracking is available. This method should be used instead of querying #code_tracker because the latter one may be nil.

Returns:

  • (Boolean)


75
76
77
# File 'lib/datadog/di/base.rb', line 75

def code_tracking_active?
  code_tracker&.active? || false
end