# File lib/new_relic/agent/error_collector.rb, line 127 def tag_exception(exception) return if exception_is_java_object?(exception) return if exception.frozen? begin exception.instance_variable_set(EXCEPTION_TAG_IVAR, true) rescue => e NewRelic::Agent.logger.warn("Failed to tag exception: #{exception}: ", e) end end