We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cda7074 commit f426210Copy full SHA for f426210
lib/appmap/agent.rb
@@ -57,6 +57,12 @@ def info(msg)
57
end
58
59
60
+ def tracing_enabled?
61
+ return false unless @tracing
62
+
63
+ @tracing.enabled?
64
+ end
65
66
# Used to start tracing, stop tracing, and record events.
67
def tracing
68
@tracing ||= Trace::Tracing.new
lib/appmap/hook/method.rb
@@ -83,7 +83,7 @@ def gettime
83
84
85
def trace?
86
- return false unless AppMap.tracing.enabled?
+ return false unless AppMap.tracing_enabled?
87
return false if Thread.current[HOOK_DISABLE_KEY]
88
return false if hook_package&.shallow? && AppMap.tracing.last_package_for_current_thread == hook_package
89
0 commit comments