lib/elastic_apm/error_builder.rb in elastic-apm-0.3.0 vs lib/elastic_apm/error_builder.rb in elastic-apm-0.4.0
- old
+ new
@@ -32,10 +32,10 @@
end
private
def add_stacktrace(error, kind, backtrace)
- return unless (stacktrace = Stacktrace.build(@config, backtrace))
+ return unless (stacktrace = Stacktrace.build(@config, backtrace, :error))
case kind
when :exception
error.exception.stacktrace = stacktrace
when :log