lib/instana/tracing/span.rb in instana-1.209.0.pre3 vs lib/instana/tracing/span.rb in instana-1.209.1
- old
+ new
@@ -80,9 +80,12 @@
# Adds a backtrace to this span
#
# @param limit [Integer] Limit the backtrace to the top <limit> frames
#
def add_stack(limit: 30, stack: Kernel.caller)
+ cleaner = ::Instana.config[:backtrace_cleaner]
+ stack = cleaner.call(stack) if cleaner
+
@data[:stack] = stack
.map do |call|
file, line, *method = call.split(':')
{